[CONTLOCK-9] Rename action should be disabled for children of locked node Created: 23/May/23  Updated: 23/May/23

Status: Accepted
Project: Content Locking
Component/s: None
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Richard Gange
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File renamed.png    
Issue Links:
Relates
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
Date of First Response:

 Description   

At the current moment, locking a node locks renaming node children as well. This can be confusing for the client, since the lock only affects the parent node.

For this reason, it would be a good idea to disable the rename action on children nodes to avoid confusion.

Reproduce

  • Lock a node.
  • Attempt to rename a child node.

Actual
Lock exception thrown:

ERROR info.magnolia.ui.contentapp.browser.ActionExecutionService 23.05.2023 09:43:49 -- An error occurred while executing action [commit]
info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: commit
	at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:64) ~[magnolia-ui-api-6.2.33.jar:?]
	at info.magnolia.ui.contentapp.browser.ActionExecutionService.executeAction(ActionExecutionService.java:70) ~[magnolia-ui-framework-6.2.33.jar:?]
	at info.magnolia.ui.framework.action.service.CompatibilityActionExecutionService.executeAction(CompatibilityActionExecutionService.java:129) ~[magnolia-ui-framework-compatibility-6.2.33.jar:?]
...
...
...
Caused by: javax.jcr.lock.LockException: Node locked.
	at org.apache.jackrabbit.core.lock.LockManagerImpl.checkLock(LockManagerImpl.java:694) ~[jackrabbit-core-2.20.9.jar:2.20.9]
	at org.apache.jackrabbit.core.lock.LockManagerImpl.checkLock(LockManagerImpl.java:670) ~[jackrabbit-core-2.20.9.jar:2.20.9]
	at org.apache.jackrabbit.core.lock.LockManagerImpl.checkLock(LockManagerImpl.java:655) ~[jackrabbit-core-2.20.9.jar:2.20.9]
	at org.apache.jackrabbit.core.lock.XALockManager.checkLock(XALockManager.java:174)

Expected
Rename action should be disabled in the UI.


Generated at Mon Feb 12 00:22:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.