In order to prevent concurrent users to alter simultaneously the same resource. Either pessimistic locking (reserve the resource for the 1rst user and prevent access to the 2nd user), or optimistic locking (reject the 2nd commit tentative). User(s) whose transaction has been rejected/rollbacked must be warned. | |
| priority | important |
|---|---|
| type | enhancement |
| appeared in | <not specified> |
| done in | 3.18.0 |
| load | 2.000 |
| load left | 2.000 |
| closed by | <not specified> |


#197663 Active Directory support
Comments
One simple strategy is to get the last modification date on an edition form (or equivalent in a desktop interface), send it when validating the form and check if the last modification is still up to date.
Is this enough ?
I would take the optimistic approach, with maybe some additional warnings on form telling another user is editing the same enity.
this might be relevant : http://www.lshift.net/blog/2009/03/02/evserver-part3-simplified-etherpad-clone
also possibly relevant: http://www.webdav.org/specs/rfc2518.html
I'm very tempted to reject this.
in vertue of?
see https://www.cubicweb.org/patch/2490910 which implements one of the identical tickets