Open
Description
Steps to reproduce
- lock a file
- copy an other file on the destination of the locked file by supplying the token e.g.
curl -u uu1:uu1 -X COPY "http://localhost/owncloud-core/remote.php/dav/files/uu1/textfile2.txt" -H "Destination: http://localhost/owncloud-core/remote.php/dav/files/uu1/textfile1.txt" -v -H "If: (<opaquelocktoken:272a7666-3d64-49ee-a017-14d57572cf72>)"
Expected behaviour
the destination file is still locked
I cannot find the exact scenario in the RFC only:
A COPY method invocation MUST NOT duplicate any write locks active on
the source. However, as previously noted, if the COPY copies the
resource into a collection that is locked with a depth-infinity lock,
then the resource will be added to the lock.
https://tools.ietf.org/html/rfc4918#section-7.6
But I would expect the destination lock still be present
Actual behaviour
destination file is not locked any more