-
Notifications
You must be signed in to change notification settings - Fork 2.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
Don't apply persistent lock on received declined shares #33885
Comments
This returns the lock for user1:
Looks like the storage limit isn't applied correctly. |
looking at the formatted SQL above, it seems we also need to add the storage id in the two other "OR" clauses |
|
GitMate.io thinks possibly related issues are #33847 (Persistent lock: cannot unshare from self), #27072 (Cannot move received federated share mount), #17243 (Lock sharing operations when file is locked), #31651 (Adding persistent lock types to ILockingProvider), and #17181 (Properly lock share owner parent folders). |
You don't even need to decline the share. This is too bad, increasing to p2 as we can't release in this state. |
@DeepDiver1975 FYI |
We should change the query to:
|
Additional adjustment to have only one depth check:
|
in the spirit of TDD, here's a PR with a unit test that covers depth 0 and 1 and also an unrelated storage, which proves the issue: #33888 |
let's enforce that so we don't burden ourselves with useless use cases... |
From #32250 (comment)
Steps
Expected result
Actual result
Version
discovered on #32250
It is likely that whatever checks for locks is retrieving the full list of share mount points and does not filter it by state. Need to check what APIs are used there as there is already an existing way to only get visible mount points.
The text was updated successfully, but these errors were encountered: