Skip to content

fix(ObjectStore/S3): switch to more reliable doesObjectExistV2#58840

Open
joshtrichards wants to merge 2 commits intomasterfrom
jtr/fix-ObjectStore-S3-doesObjectExistV2
Open

fix(ObjectStore/S3): switch to more reliable doesObjectExistV2#58840
joshtrichards wants to merge 2 commits intomasterfrom
jtr/fix-ObjectStore-S3-doesObjectExistV2

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Mar 10, 2026

  • Resolves: #

Summary

The non-v2 version is deprecated, but more importantly the V2 implementation makes fewer assumptions about ambiguous or unexpected status codes. For example, a 403 would result in a false (object does not exist) in V1, but that's not necessarily what that means. V2 returns true/false on a much more narrow set of scenarios. And it throws for all others so they can be diagnosed properly.

Refs:

TODO

  • ...

Checklist

AI (if applicable)

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

The non-v2 version is deprecated, but more importantly the V2 implementation makes fewer assumptions about ambiguous or unexpected status codes. For example, a 403 would result in a false (object does not exist) in V1, but that's not necessarily what that means. V2 returns true/false on a much more narrow set of scenarios. And it throws for all others so they can be diagnosed properly.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Mar 10, 2026
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Mar 10, 2026
@joshtrichards joshtrichards marked this pull request as ready for review March 10, 2026 15:16
@joshtrichards joshtrichards requested a review from a team as a code owner March 10, 2026 15:16
@joshtrichards joshtrichards requested review from Altahrim, ArtificialOwl, come-nc and icewind1991 and removed request for a team March 10, 2026 15:16
Signed-off-by: Josh <josh.t.richards@gmail.com>
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.

3 participants