Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20455

Collaborator cannot revert to previous version

    Details

    • Type: Service Pack Request
    • Status: Open (View Workflow)
    • Resolution: Unresolved
    • Affects Version/s: 5.2.4.1
    • Fix Version/s: 5.2.N, 6.0.N, 6.1.N
    • Component/s: Share Application
    • Labels:
      None
    • Environment:
      Linux, Docker
      Chrome, Firefox
    • ACT Numbers:

      00987096

    • Premier Customer:
      Yes

      Description

      [Description]:

      When a Collaborator tries to revert a file created by a different user to a previous version for the second time, there is an error displayed (see pic attached). The customer is expecting to be able to revert the file.

      [Steps to reproduce]:

      Use a PNG or DOCX file

      1. create a default test site
      2. create 2 users and add them to the site as collaborators
      3. User A (Collaborator) uploads a document doc1 (version 1.0)
      4. User A uploads a new version for doc1 (version (1.1)
      5. User B (Collaborator) reverts doc1 to version 1.0 (version 1.2 gets created)
      6. User B tries to revert to version 1.1. Gets an error message that version could not be reverted.
      ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-7] Exception from executeScript: 08180003 Wrapped Exception (with status template): 08180072 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': 08180071 Access Denied.  You do not have the appropriate permissions to perform this operation.
      alfresco_1               | org.springframework.extensions.webscripts.WebScriptException: 08180003 Wrapped Exception (with status template): 08180072 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': 08180071 Access Denied.  You do not have the appropriate permissions to perform this operation.
      ...
      Caused by: org.alfresco.scripts.ScriptException: 08180072 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': 08180071 Access Denied.  You do not have the appropriate permissions to perform this operation.
      ...
      Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 08180071 Access Denied.  You do not have the appropriate permissions to perform this operation.
      ...
      Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
      ...
      

      The full exception is attached MNT-20455-Exception.txt

      [Expected Behaviour]:

      User B should be able to revert to version 1.1

      [Observed Behaviour]:

      5.2.4
      Reverting .PNG Unable to revert

      6.1
      Reverting .PNG Unable to revert

      The error in alfresco.log is the following:

      16:33:21,459 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 02180003 Wrapped Exception (with status template): 02180017 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': 02180016 Access Denied. You do not have the appropriate permissions to perform this operation.
      org.springframework.extensions.webscripts.WebScriptException: 02180003 Wrapped Exception (with status template): 02180017 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/version/revert.post.json.js': 02180016 Access Denied. You do not have the appropriate permissions to perform this operation.

        Attachments

        1. docker-compose.yml
          7 kB
        2. MNT-20455-Exception.txt
          25 kB
        3. not_reverted.PNG
          not_reverted.PNG
          160 kB

          Structure

            Activity

              People

              • Assignee:
                shareteam Share Team
                Reporter:
                mtonelli Marco Tonelli
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel