-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch node for share not found #26411
Conversation
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
3d1479d
to
64a38cc
Compare
/backport to stable20 |
/backport to stable21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it's the right spot to catch it. The manager (or somewhere up the stack) might make more sense to call it? Same with unsharing (provided it is free of side effects – e.g. temporarily unavailable storage, but that SHOULD fail differently).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering a bit if in that scenario the cache is actually an instance of a FailedCache so we can just skip the search call in such a case in the view directly before the search is called when iterating over the mounts server/lib/private/Files/View.php Lines 1663 to 1669 in f98fed3
That would be a bit cleaner in my opinion, but hard to tell from the trace if that would work. |
Fell free to find a better way. This is way out of my current php focus, this was a quickfix for proper catching. :) |
please resolve the conflict, looks like a quick win |
Any chance to see this on v25 and backported? |
Fixed already by e198dc1 |
@skjnldsv this happens in latest v22, isn't that commit included?
|
@skjnldsv just got this error on NC 25.0.3 should i open a new issue regarding this ? loooks like is simular to this
|
Fix #24891
Is this a god time to delete the share if the node doesn't exists?