Skip to content

[stable35] fix(files): Continue scanning after StorageInvalidException - #66291

Merged
DerDreschner merged 1 commit into
stable35from
backport/65585/stable35
Nov 4, 2026
Merged

DerDreschner merged 1 commit into
stable35from
backport/65585/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 4, 2026

Copy link
Copy Markdown

Backport of PR #65585

When a federated share was already removed on the remote end, accessing it triggers a `StorageInvalidException` after the share and its mount are removed locally. When running `occ files:scan`, this exception isn't caught by the scanner and aborts the scan of all remaining mounts of that user, printing a stack trace instead. This can be pretty frustrating on larger instances with many federated shares.

To avoid that, the `StorageInvalidException` is now caught and handled the same way as the `StorageNotAvailableException`: log it as an error, report it through the `StorageNotAvailable` hook and continue with the next mount.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@backportbot
backportbot Bot requested review from a team as code owners November 4, 2026 13:39
@backportbot
backportbot Bot requested review from CarlSchwan, ChristophWurst, DerDreschner, GhassenKefi, icewind1991 and pabzm and removed request for a team November 4, 2026 13:39
@backportbot backportbot Bot added this to the Nextcloud 35.0.3 milestone Nov 4, 2026
@DerDreschner
DerDreschner merged commit 412c368 into stable35 Nov 4, 2026
246 of 256 checks passed
@DerDreschner
DerDreschner deleted the backport/65585/stable35 branch November 4, 2026 20:17
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for more than 7 days. As we do not monitor merged or closed pull requests, we are locking this pull request to prevent further comments from getting lost in the noise.
If you discovered any issues with this pull request, please open a new issue instead. In case you want to discuss this pull request or have further questions, please use our forum: https://help.nextcloud.com

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants