You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Second OptimisticLock on one role skips the update silently #57
When a role has more than one OptimisticLock listener, only the first one locks the update; the others skip it silently. The first listener wraps the update command into WrappedStoreCommand, which is not a ScopeCarrierInterface, so every following lock listener finds no scope to add its condition to and does nothing.
Is this a regression?
Not checked.
To Reproduce
A hand-written schema that registers two OptimisticLock listeners for one role, on different fields (the attribute is not repeatable, but the schema format allows it).
Update the entity while the second lock field changed in the database.
The update succeeds; only the first lock field is checked.
Expected behaviour
Every lock listener adds its condition, or a second lock on the same role is rejected with an error.
Activity