Repository navigation
fix: ensure that the checkPropFind event occurs before httpPropFind [10.16] - #41890
Merged
Merged
Conversation
These two events had the same event priority. They happened to get in the right order because their event entries were sorted alphabetically, so "c" came before "h". Sabre\Event is no longer going to do this alphabetical sorting. It will trigger events in priority order, and then for events with the same priority, it will trigger the events in the order that they have been put into the listeners array. This will make the order of event execution more transparent. Signed-off-by: Phillip Davis <[email protected]> (cherry picked from commit cd67d47)
This was referenced Oct 5, 2026
Contributor
Author
|
Verified by #41887, which is stacked on this branch: its API smoke suite against 10.16 went from 465/541 scenarios passing, with all 76 failures being this PROPFIND 207-instead-of-404 bug, to 541/541 passing (run 37368515876). |
phil-davis
approved these changes
Oct 6, 2026
| number of checkPropFind, increasing its priority, so that it always executes | ||
| first, regardless of any other sort order. | ||
|
|
||
| https://github.com/owncloud/core/pull/41676 |
Contributor
This was referenced Oct 6, 2026
Merged
feat(server): update 10.16.5 to 10.16.6 image from GitHub release tarball
owncloud-docker/server#721
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of cd67d47 from #41797 (master) to 10.16.
Problem
On 10.16.5, a PROPFIND on a path that does not exist returns
207with a<d:multistatus …start, followed by aNotFoundd:errordocument. 10.16.4 returns404.#41787 bumped sabre/event on 10.16 from 5.1.7 to 5.1.9. 5.1.9 no longer sorts listeners of equal priority alphabetically.
FilesPlugin::checkPropFindand sabre'sCorePlugin::httpPropFindboth listen onmethod:PROPFINDat the default priority of 100, sohttpPropFindcan now run first and start streaming a 207 beforecheckPropFindgets the chance to throw NotFound. PHP 7.4'susortis not stable either, so on 10.16 the order of equal-priority listeners is not reliable at all.Master fixed this together with the same bump in #41797. 10.16 got the bump in #41787 but not this fix.
Change
Register
checkPropFindat priority 99, so it always runs beforehttpPropFind. The commit is cherry-picked unchanged, including its changelog entry.Verification
The 10.16 acceptance workflow in #41887 runs the API smoke suite against 10.16. Without this fix, all 76 of its unexpected failures are this bug: either
should not exist. But API returned 207 without XML in the body, orException parsing response body. #41887 will be rebased onto this branch to show that they go away.🤖 Generated with Claude Code