Skip to content

copying a file on a locked file removes the lock on the destination #34386

Open
@individual-it

Description

@individual-it

Steps to reproduce

  1. lock a file
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions