-
Notifications
You must be signed in to change notification settings - Fork 155
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
Change wording of Role Descriptions #11381
Comments
confirmed in both |
Step 2. Is |
Updated the steps to reproduce. Thank you. I tested it with a folder and thought it can be just done the same way with a file, sorry. Everything done via UI, nothing directly via API. |
To clarify, the "upload" permission should allow "anonymous" to create new files in the folder, but not overwrite (=edit) existing files. After "anonymous" has uploaded a file, they should not be able to change what they uploaded (can't edit it or delete it), but should be able to list the files and download files. Correct? |
What API is OnlyOffice using for that? I'm surprised the API tests did not catch it |
Wopi |
Correct, thank you! |
We have e2e coverage for an app provider. It is not very large, because we wanted to implement only primitive tests as a first step (create and open a |
Yes I think we should. I believe the decision to make only small coverage was because the security related code path should be the same as with webDAV, but that does not look like its true |
@kulmann I found the place in a code when we give the write permissions to OnlyOffice but it is not a root issue. Because the permissions statements (view, download and upload) do not contradict that. |
No... @phil-davis interpretation is what we want: The user can upload files, but not overwrite existing files. |
Hm, from a feature POV i tend to agree. In the CS3 API there is no distinction, upload means also overwrite. IMHO not solvable in this API version. |
How does the WebDAV API currently react in that case? |
Option 3 would be fine by me. UX-wise the differentiation is hard to understand anyway. So might actually be an improvement... |
yes. Option 3 is the best. |
ok, so lets remove this role from the link 😬 |
Hm, that would need a migration 😱 |
Is the "can upload" should be changed to "can edit" or "can view"? |
Yes. We need a better description which matches our behavior |
@tbsbdr propose a text |
@tbsbdr Not quite how i understand it. The main difference is the "delete" permission. Edit is also true for txt and md files. |
I could Not Edit txt, can you? |
you can upload a new txt file version. |
The main problem here is the "edit" vs. "upload" semantics. From the ocis backend perspective, both are uploads and require the upload permission. This is different for directories. They are controlled by the create-directories permission. |
Note: "edit-save" and "upload-overwrite" really mean the same thing. There is no such thing as "editing" a file that is sitting on a server. Actually, there is also no such thing as "editing" a file on the local filesystem on my laptop. "editing" is a thing that is done in-memory with a user-interface (graphical (LibreOffice...) or textual (VI, nano, a line-based command-line editor...) When the person doing the "editing" asks to "save", then the editor software does an "upload-overwrite" to the file, wherever the persistent storage is. It might rewrite the whole file, it might append to the end (if the change just adds to the file), it might overwrite just some bytes of the file (if it implements some optimized way of saving just the bits that changed). |
From a linux file system perspective, which is similar to webdav: mkdir test
echo "bar" > test/foo # works, because of write permissions to test
chmod -w > test/foo
echo "foo" > test/foo # fails, permission denied |
@tbsbdr adjust wording for the role |
Suggestion for the rewording of the roles description.
@kulmann is option 2 - less verbose, fine for you?
General overview
|
@kulmann whats your opinion - go or no? 👆 |
We had that in the past and changed it to being more verbose because people had difficulties understanding the implications. Now that the whole context is more verbose we may as well go back to less verbose within the dropdown. Fine by me. |
@kulmann So I guess this would be a web ticket now? On the server side we don't have any descriptive texts for the public link types AFAICS. |
Seems like it, yes. Transferred it to web now. |
Describe the bug
OnlyOffice can write documents from a public link share with "Can upload" role.
Steps to reproduce
asdf/test.docx
via OnlyOfficeCan upload
role (which states permissionsview, download and upload
)asdf/test.docx
via OnlyOfficeExpected behavior
"anonymous" should have a read only view or at least an error message when trying to save.
Actual behavior
"anonymous" can edit and save the document.
The text was updated successfully, but these errors were encountered: