[MGNLUI-6185] Non root users cannot save jcrMultiField content Created: 04/Sep/20  Updated: 06/Jan/21  Resolved: 19/Oct/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.2
Fix Version/s: 6.2.4

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Jorge Franco
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File disclaimer.yaml     Text File error.log    
Issue Links:
causality
duplicate
is duplicated by MGNLUI-5963 Cannot save Multi Value dialog if no ... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Testcase included:
Yes
Epic Link: UI framework implementation
Sprint: Maintenance 29
Story Points: 5

 Description   

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


Generated at Mon Feb 12 09:33:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.