Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Dec 15, 2025

  • Resolves: #

Summary

The method never returns false for non-existence - it either returns true or throws (passes on) an exception.
This doesn't match the API contract for getChild().
The null check was meaningless since exceptions are thrown before null can be returned.

Discovered while implementing unit tests.

TODO

  • ...

Checklist

@joshtrichards joshtrichards requested a review from a team as a code owner December 15, 2025 16:01
@joshtrichards joshtrichards requested review from Altahrim, CarlSchwan, icewind1991, provokateurin and salmart-dev and removed request for a team December 15, 2025 16:01
@joshtrichards joshtrichards added this to the Nextcloud 33 milestone Dec 15, 2025
@joshtrichards
Copy link
Member Author

/backport to stable32

@joshtrichards
Copy link
Member Author

/backport to stable31

Copy link
Member

@solracsf solracsf left a comment

Choose a reason for hiding this comment

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

Good catch

@provokateurin provokateurin merged commit 10fa179 into master Dec 15, 2025
211 of 219 checks passed
@provokateurin provokateurin deleted the jtr/fix-uploadhome-childexists branch December 15, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants