Open
Description
Steps to reproduce
- user1 share file to user2
- as user1 lock the shared file with an shared lock
- as user2 lock the shared file with an shared lock
- as user1 try to overwrite the file sending the own lock token
Expected behaviour
in case of multiple shared locks every client should be able to use the own token to change the resource.
RFC 4518: http://www.webdav.org/specs/rfc4918.html#exclusive-lock
However, there are times when the goal of a lock is not to exclude others from exercising an access right but rather to provide a mechanism for principals to indicate that they intend to exercise their access rights. Shared locks are provided for this case. A shared lock allows multiple principals to receive a lock. Hence any principal that has both access privileges and a valid lock can use the locked resource.
Actual behaviour
both users lock each other, no one can use the resource