rclone/backend/jottacloud
albertony 2b67ad17aa jottacloud: fix issue with server-side copy when destination is in trash
A strange feature (probably bug) in the api used by the server-side copy implementation
in Jottacloud backend is that if the destination file is in trash, the copy request
succeeds but the destination will still be in trash! When this situation occurs in
rclone, the copy command will fail with "Failed to copy: object not found" because
rclone verifies that the file info in the response from the copy request is valid,
and since it is marked as deleted it is treated as invalid.

This commit works around this problem by looking for this situation in the response
from the copy operation, and send an additional request to a built-in deduplication
endpoint that will restore the file from trash.

Fixes #6112
2022-04-27 12:06:36 +02:00
..
api jottacloud: minor cleanup of upload response 2022-04-27 08:40:34 +02:00
jottacloud.go jottacloud: fix issue with server-side copy when destination is in trash 2022-04-27 12:06:36 +02:00
jottacloud_internal_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
jottacloud_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00