-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
- blocks
-
CMS-3189 moving attachment on a locked content
-
- Closed
-
[EXPLORER-194] Check the lock on the resource before editing, moving or deleting
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Assignee | New: Laurence Aumeunier [ laurence ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
With your change, one cannot add attachments to pages anymore !
The cause is that a Page is not a LockableAmetysObject, nor it can be locked, so that you can't call LockManager.getLock for it
By the way you should check if the object is instanceof LockAwareAmetysObject instead of LockableAmetysObject