Skip to content

fix(s3): prevent "0" path from being treated as root#58615

Open
joshtrichards wants to merge 4 commits intomasterfrom
jtr/fix-s3-normalizePath-falsy
Open

fix(s3): prevent "0" path from being treated as root#58615
joshtrichards wants to merge 4 commits intomasterfrom
jtr/fix-s3-normalizePath-falsy

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Feb 27, 2026

  • Resolves: #

Summary

Prevented folders from being created called 0 (silently failed in the Web client; returning 405 on the backend)
No more falsy ambiguity with 0 named folder.

Note: Only real changes are in line 69 and 133

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards requested a review from a team as a code owner February 27, 2026 15:44
@joshtrichards joshtrichards requested review from CarlSchwan, come-nc, provokateurin and sorbaugh and removed request for a team February 27, 2026 15:44
@joshtrichards
Copy link
Member Author

/backport to stable33

@joshtrichards
Copy link
Member Author

/backport to stable32

@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Feb 27, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards
Copy link
Member Author

joshtrichards commented Feb 27, 2026

Well, our side is fixed, but it turned up a similar problem in the AWS SDK:

https://github.com/nextcloud/3rdparty/blob/34fdf0b083a7997d8884646c1e0d6255704a05a3/aws/aws-sdk-php/src/Multipart/AbstractUploadManager.php#L242-L249

PR pending upstream: aws/aws-sdk-php#3253

IMO shouldn't block this PR since we were already worse off before. I guess we may want to consider a temporary patch in our nextcloud/3rdparty repo since not sure (a) how long upstream will take (b) not sure how long until all of our supported majors are bumped to next SDK

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants