Skip to content

MOVE between spaces returns 502 but deletes the existing destination file #3767

Closed
opencloud-eu/reva
#891

Description

@v-scharf

A webda move with Overwrite: T onto an existing file in another space returns 502 (cross storage moves are not supported). The destination file is deleted anyway and ends up in its owner's trash bin.

Steps

  1. alice shares the folder aliceShare (containing aliceFile.txt) with brian as Editor.
  2. carol shares the folder carolShare (also containing carolFile.txt) with brian as Editor.
  3. brian moves the file: MOVE /dav/spaces/<aliceShare remoteItem.id>/aliceFile.txt with Destination: /dav/spaces/<carolShare remoteItem.id>/carolFile.txt.

Expected: 502, nothing changes.
Actual: 502, carolShare/carolFile.txt is gone and ends up in carol's trash bin.

This also happens with a guest-link session.

Tests: apiSpacesDavOperation/moveByFileId.feature:471 and apiGuestLink/guestLinkSecurity.feature:244

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions