-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.2
-
None
-
-
Empty show more show less
-
Yes
-
Maintenance 29
-
5
Steps to reproduce
- create a publisher user called `testuser`
- assign `testuser` non root access to test workspace (using ACL), do not allow write permission on root of workspace or any sub-folder
- let `testuser` create an item for the test workspace and click save button using default dialog
- dialog configuration attached disclaimer.yaml
Expected results
- Content saved to JCR
Actual results
he gets the following error with error.log
RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc caused by InvocationTargetException caused by MethodException: Invocation of method buttonClick in info.magnolia.ui.dialog.ActionButton$$Lambda$2083/0x00000008417bc840 failed. caused by RuntimeException: info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: commit caused by ActionExecutionException: Action execution failed for action: commit caused by RuntimeRepositoryException: javax.jcr.PathNotFoundException: /__TMP_ORDER_STORAGE caused by PathNotFoundException: /__TMP_ORDER_STORAGE
If that same component is saved by a superuser user, no error occurs
Workaround
No.
Development notes
- Note from Support investigation: When user saved content, the function applyOrder of DefaultJcrNodeOrderHandler has been called. In that function implementation, a TMP_ORDER_STORAGE created under Root node for temporarily order storage.
- In case user lacks of Root access permission, the issue occurs.
- Reference code:
- https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/DefaultJcrNodeOrderHandler.java#99
- try to use the same path or use also a system session, if having two is not a problem
Acceptance criteria
- is duplicated by
-
MGNLUI-5963 Cannot save Multi Value dialog if no "Write" permission on Root node
- Closed