Skip to content

@tus/s3-store: avoid false completion on generic 404 - #877

Merged
Murderlon merged 1 commit into
tus:mainfrom
ferhatelmas:s3-store-getupload-not-found
Sep 22, 2026
Merged

Murderlon merged 1 commit into
tus:mainfrom
ferhatelmas:s3-store-getupload-not-found

Conversation

@ferhatelmas

@ferhatelmas ferhatelmas commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

A generic NotFound from S3 ListParts could make getUpload() report the full upload offset even when the upload was incomplete. Exclude that error from completion detection while preserving the existing NoSuchUpload and NoSuchKey behavior.

Cover all three error codes through SDK name and legacy Code fields, including unchanged propagation of generic errors.

Related to #859

@changeset-bot

changeset-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 39e42f3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tus/s3-store Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

related to tus#859

Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>
@ferhatelmas
ferhatelmas force-pushed the s3-store-getupload-not-found branch from 7974303 to 39e42f3 Compare September 21, 2026 12:39
@ferhatelmas
ferhatelmas deployed to external-testing September 21, 2026 12:39 — with GitHub Actions Active
@ferhatelmas
ferhatelmas marked this pull request as ready for review September 21, 2026 12:40

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@ferhatelmas

Copy link
Copy Markdown
Contributor Author

@Murderlon this is a regression fix, it would be nice to get in so that we can bump the versions, thanks 🙏🏻

@Murderlon Murderlon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Murderlon
Murderlon added this pull request to the merge queue Sep 22, 2026
Merged via the queue into tus:main with commit 8107262 Sep 22, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
external-testing — 39e42f3c Deployed Sep 21, 2026 by ferhatelmas via Tests #41
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.

2 participants