-
Notifications
You must be signed in to change notification settings - Fork 55
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
Shared image file appears to have "SRGDNVW" permissions (although PROPFIND ground truth has "SRGD") #1606
Comments
cc @skjnldsv |
It turns out that the PROPFIND on the containing folder lists the file permissions incorrectly as "SRGDNVW" |
Debugging this with @artonge we found that this line automatically adds UPDATE permissions on any movable mount in order for users to able to move and rename the shared file, which however then leads to single file shares being displayed as editable in the directory listing, even if the sharer disabled editing. @icewind1991 Do you have an idea on how we could mitigate this? From my point of view we have four options forward:
also cc @jancborchardt |
For this specific case at least I’m thinking the use-case is valid: Or am I misunderstanding this case? |
Agreed. The question is if there are any other instances of "Edit" functionality that would break due to this permissions inconsistency. Text editor opens the file in read-only mode, for example, which I'd say makes sense, given that it's a read-only share, but then it doesn't allow editing and saving to a new file. |
Fix is here: nextcloud/server#38179 |
Describe the bug
A sharee of an image can still open the image editor even though the have no editing permissions from the share. Saving the edited image will fail without an explanation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Edit button is not visible
Additional context
The Viewer#canEdit computed property reveals "SRGDNVW" permissions for this.currentFile, but the PROPFIND-returned xml data shows permissions correctly as "SRGD". Presumably, somewhere that information is lost or overridden.
The text was updated successfully, but these errors were encountered: