Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Change wording of Role Descriptions #11381

Closed

Description

@kulmann

Describe the bug

OnlyOffice can write documents from a public link share with "Can upload" role.

Steps to reproduce

  1. As "admin", create asdf/test.docx via OnlyOffice
  2. As "admin", create a public link to the folder asdf with Can upload role (which states permissions view, download and upload)
  3. As anonymous, receive and follow the public link
  4. As anonymous, open asdf/test.docx via OnlyOffice
  5. As anonymous, write some content into the file and leave the document again
  6. As "admin", see that the changes have been written to disk (e.g. by downloading the file after the lock has been released)

Expected 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.

Activity

  1. added
    Type:Bug
    Priority:p2-high
    on Mar 8, 2024
  2. kulmann commented on Mar 8, 2024

    @kulmann
    ContributorAuthor

    confirmed in both v5.0.0-rc.5 and v4.0.6

  3. 2403905 commented on Mar 8, 2024

    @2403905
    Contributor

    Step 2. Is admin create a public link to this file with the Can upload role using API or UI ?
    The Can upload role has to be used for folders, bu not for files.

  4. kulmann commented on Mar 8, 2024

    @kulmann
    ContributorAuthor

    Step 2. Is admin create a public link to this file with the Can upload role using API or UI ?

    The Can upload role has to be used for folders, bu not for files.

    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.

  5. phil-davis commented on Mar 11, 2024

    @phil-davis
    Contributor

    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?

  6. individual-it commented on Mar 11, 2024

    @individual-it
    Member

    What API is OnlyOffice using for that? I'm surprised the API tests did not catch it

  7. micbar commented on Mar 11, 2024

    @micbar
    Contributor

    Wopi

  8. kulmann commented on Mar 11, 2024

    @kulmann
    ContributorAuthor

    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?

    Correct, thank you!

  9. self-assigned this
    on Mar 11, 2024
  10. v-scharf commented on Mar 11, 2024

    @v-scharf
    Contributor

    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 docx or odt document).
    Maybe we should increase the coverage with e2e?

  11. individual-it commented on Mar 11, 2024

    @individual-it
    Member

    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

  12. 2403905 commented on Mar 11, 2024

    @2403905
    Contributor

    @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.
    If a user can upload then the user can change the file, right?

  13. 2403905 commented on Mar 11, 2024

    @2403905
    Contributor

    @micbar @kulmann Is the upload permission redundant in this case?

  14. kulmann commented on Mar 11, 2024

    @kulmann
    ContributorAuthor

    If a user can upload then the user can change the file, right?

    No... @phil-davis interpretation is what we want: The user can upload files, but not overwrite existing files.

  15. 23 remaining items

  16. tbsbdr commented on Jul 8, 2024

    @tbsbdr

    @tbsbdr adjust wording for the role

  17. changed the title [-]Users can write changes through an "upload" public link share[/-] [+][PM] Users can write changes through an "upload" public link share[/+] on Jul 8, 2024
  18. tbsbdr commented on Jul 31, 2024

    @tbsbdr

    Suggestion for the rewording of the roles description.

    • Assuming that "Only for invited ppl" will be removed
    • Adds edit to Can upload
    • Adds delete to Can edit
    • I'd prefer to be less verbose in the role description (option 2)
    • Note: In general I'd prefer to remove the Uploader role at all, as it adds little value for the user, but if I understand @micbar correctly this would be expensive due to a migration necessity.

    @kulmann is option 2 - less verbose, fine for you?

    1) Verbose 2) Less verbose
    Image Image

    General overview

    Needs authentication delete upload/edit view download upload (existing content not revealed)
    Invited People ✅ (✅) (✅) (✅) (✅) ❌
    Can edit ❌ ✅ ✅ ✅ ✅ ❌
    Can upload ❌ ❌ ✅ ✅ ✅ ❌
    Can view ❌ ❌ ❌ ✅ ✅ ❌
    Secret File Drop ❌ ❌ ❌ ❌ ❌ ✅
  19. tbsbdr commented on Aug 2, 2024

    @tbsbdr

    @kulmann whats your opinion - go or no? 👆

  20. kulmann commented on Aug 2, 2024

    @kulmann
    ContributorAuthor

    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.

  21. removed their assignment
    on Aug 2, 2024
  22. changed the title [-][PM] Users can write changes through an "upload" public link share[/-] [+]Change wording of Role Descriptions[/+] on Aug 2, 2024
  23. rhafer commented on Aug 20, 2024

    @rhafer

    @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.

  24. transferred this issue fromowncloud/ocison Aug 21, 2024
  25. kulmann commented on Aug 21, 2024

    @kulmann
    ContributorAuthor

    @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.

  26. self-assigned this
    on Sep 26, 2024
  27. moved this from Backlog to In progress in Infinite Scale Team Boardon Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:p2-highType:Bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions