-
Type:
Service Pack Request
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 5.2.4.1
-
Component/s: Share Application
-
Labels:None
-
Environment:Linux, Docker
Chrome, Firefox
-
ACT Numbers:
00987096
-
Premier Customer:Yes
[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
- create a default test site
- create 2 users and add them to the site as collaborators
- User A (Collaborator) uploads a document doc1 (version 1.0)
- User A uploads a new version for doc1 (version (1.1)
- User B (Collaborator) reverts doc1 to version 1.0 (version 1.2 gets created)
- 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.