You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix upload conflict failing with 2501 on a leftover draft link
When a file upload fails or is interrupted, a draft link is left behind. The
next upload of the same file hits a name conflict, and handleRevisionConflict
located that draft link and called ListRevisions on it to look for a draft
revision to replace.
Proton's API now answers GET /files/<linkID>/revisions with "File or folder
not found" (Code=2501) for a draft link (one with no active revision), so the
upload failed instead of replacing the draft. This surfaced as a failure of the
integration test FsPutFiles (the preceding FsPutError leaves such a draft).
Handle a draft-state link directly: delete it and resubmit the file creation
when replace_existing_draft is set, otherwise return ErrDraftExists - without
listing its revisions. The active-link path (delete a stale draft revision,
then create a new revision) is unchanged.
0 commit comments