Skip to content

Report failures on COPY and third-party copy instead of success - #5774

Open
btwshivam wants to merge 3 commits into
cs3org:masterfrom
btwshivam:fix-copy-dataloss
Open

Report failures on COPY and third-party copy instead of success#5774
btwshivam wants to merge 3 commits into
cs3org:masterfrom
btwshivam:fix-copy-dataloss

Conversation

@btwshivam

@btwshivam btwshivam commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

COPY handler and the third-party copy push/pull handlers reported success even when the upload to the data server (or the remote PUT) returned a non-2xx status. For overwrite COPY the destination is deleted before the upload, so a false success silently lost the file, for a third-party copy a transfer manager could delete the source after a copy that never actually happened.

While in there, a third-party copy push of a source that doesn't exist dereferenced a nil stat result and panicked.. it now returns 404
Now its:

  • report an error when a COPY upload fails
  • report an error when a third-party copy upload fails
  • return 404 for a third-party copy push of a missing source

Signed-off-by: btwshivam <shivam.devline@gmail.com>
Signed-off-by: btwshivam <shivam.devline@gmail.com>
Signed-off-by: btwshivam <shivam.devline@gmail.com>
@btwshivam

Copy link
Copy Markdown
Contributor Author

@glpatcern @jessegeens PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant