Repository navigation
Conversation
…lity recheck Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
skjnldsv
requested review from
GhassenKefi and
pabzm
and removed request for
a team
November 30, 2026 10:08
skjnldsv
requested review from
a team,
icewind1991 and
provokateurin
and removed request for
a team
November 30, 2026 10:43
Member
Author
|
/backport to stable34 |
CarlSchwan
approved these changes
Dec 1, 2026
This branch has not been deployed
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.
Summary
When a federated share is deleted on the owner's side and the recipient misses the unshare notification, the recipient keeps the mount forever. Once it's flagged unavailable every access returns 503, and the 10 min recheck never removes it. We saw a setup with about 1.9k of these dead storages mounted.
External\Storage::test()expectsparent::test()to throw so it can callcheckStorageAvailability(). ButCommon::test()catches every exception and returnsfalse: a 401 (StorageInvalidException) is swallowed, and a 404 on the root is cached asfalseinDAV::propfind()without throwing. The other path,hasUpdated(), returns early while the storage is unavailable. SocheckStorageAvailability(), which removes the share on 404 or 401/403, never runs.test()now stats the root itself and runscheckStorageAvailability()when that fails.Availability::updateAvailability()already catches what it throws.Warning
For user shares,
removeShare()sendsdeclineto the owner, which deletes their share. A shared folder in the owner's trash bin answers 404 on the root and onshareinfo, same as a deleted share. With this fix those shares are removed on both sides and don't come back if the folder is restored. Keeping them hidden while trashed needs the owner to report a distinct status, that's a separate follow-up.Unit tests cover
test(). Not tested between two real federated instances.TODO
Checklist
removeShare()crashes without a session user (occ files:scancrashes on stale federated shares after remote deletion #64511, fixed by always make user in external share manager explicit #64623 in 34.0.5).3. to review, feature component)stable32)AI (if applicable)
👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.