Uploaded image for project: '[Archived] Enterprise 3.x'
  1. [Archived] Enterprise 3.x
  2. ETHREEOH-4181

Access denied exception when deploying via avm deployment receiver

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2 SP1
    • Component/s: WCM
    • Security Level: external (External user)
    • Labels:
      None
    • Environment:
      System 1 windows, tomcat, mysql
      System 2 linux, tomcat, mysql

      Description

      When a deployment to an avm deployment receiver has subdirectories and files in those subdirectories, there is occasionally an access denied exception relating to the file(s).
      The folders always get deployed correctly.

      Note this issue is intermittent, but it has been reproduced easily in Support

      Steps to reproduce:
      - Create 2 fresh instances of 3.2.0r (build 410) on two different machines (system1 and system2)
         System 1 will be the receiver and system 2 will be the source
      - On System 2, create a new web project called testB.
         - In the "Configure Recievers" section, add system 1 as a Deployment Receiver.
          - e.g. Type: Live Server, Display Name: System1, Transport Name: default, Host:192.168.0.69
                  Port: 50500, username: admin, password: admin, Target Name: avm
         - in the admin sandbox, create folder1 and put a piece of content in it
         - Submit all the changes to staging
      - On System 1 - to work around the problem noted in ETHREEOH-4180, create a Web Project called testB-live
      - On System 2 - deploy the staging snapshot to system1
      Everything works fine - the file and folder is deployed correctly

      Now...
      On System 2, create a folder structure:
            folder2\
                   subfolder1\
                              aaa\
                   subfolder2\
                              
         - in every folder put a simple piece of content
         - Submit the changes to staging
         - Deploy the new snapshot to System1

      Expected behaviour:
        -- All files and folders are deployed correctly

      Observed Behaviour:
        -- Deployment fails with an access denied exception

      System1 log shows :
      16:59:12,078 ERROR [org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl] error in getSendToken ticket:a8294b6d-0b43-46ac-8ecb-c76d301625c0 path:/ROOT/folder2/bertrand.txt, guid:b68375ed-9037-416c-a6e0-577f44ef3684
      org.alfresco.repo.security.permissions.AccessDeniedException: 01110004 Not allowed to read children: avm_webapps (testB-live)

      System 2 log shows:
      12:05:09,783 ERROR [org.alfresco.repo.avm.actions.AVMDeployWebsiteAction] Deployment Error
      org.alfresco.service.cmr.avm.AVMException: 01110005 Deployment exception, unable to deploy : srcPath:a--admin:/www/avm_webapps, target:avm, version:11, adapterName:default, hostName:192.168.0.69, port:50,500, error:org.alfresco.service.cmr.avm.AVMException: 01110004 Error during deployment srcPath: a--admin:/www/avm_webapps, version:11, adapterName:default, hostName:192.168.0.69, port:50,500, error:org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [rmi://192.168.0.69:50500/deployment]; nested exception is java.rmi.ConnectException: Connection refused to host: 10.241.10.7; nested exception is:
      java.net.ConnectException: Connection timed out

      Note - this still occurs on the 3.2r build 410, but the customer uses 3.2.0e

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  ahunt Andrew Hunt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel