-
Notifications
You must be signed in to change notification settings - Fork 97
fix: prevent duplicate mount points #3752
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
Conversation
495c451 to
335747c
Compare
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
335747c to
b26826c
Compare
|
Do we actually want to do this? there are legitimate use cases for it and blocking it now might break existing workflows |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
aa7960d to
2a06a69
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
2a06a69 to
a41aaa5
Compare
icewind1991
left a comment
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 predicting the need to add a config flag for this eventually, but for the majority of users this should be an improvement.
| $storageId = $this->getRootFolderStorageId(); | ||
| if ($storageId === null) { | ||
| throw new OCSNotFoundException('Groupfolder not found'); | ||
| } | ||
|
|
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.
why is this here?
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.
Because psalm isn't smart enough to understand the check above 🤦
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.
Then you should rather suppress it than bending your code for psalm to be happy (unless your code is actually bad).
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.
With something like @var ?
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.
Yeah or just @psalm-supress
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 if really cleaner, but here it is: #3802
Fix https://github.com/nextcloud-gmbh/customer-feature-requests/issues/1012
Partially addresses #681