Skip to content

Sharing a file does set while to rw for short time #11707

Closed

Description

@LukasReschke

When sharing a file via the sharing button to other users the file is automatically shared with "can edit" permissions. - While permissions can be changed then in the next window within a short timeframe the receiving user has permissions to edit the shared file which is an unexpected behaviour.

We should make sure that always the least permissive permissions are set per default and/or make this editable within the same step.

@jancborchardt Your opinion?

\cc @guruz @ogoffart

Activity

  1. added this to the milestone on Oct 22, 2014
  2. LukasReschke commented on Oct 22, 2014

    @LukasReschke
    ContributorAuthor

    What currently happens is:

    1. User enters username
    2. User clicks enter
    3. File is shared
    4. Permissions can be edited

    We have to make sure that step 4 either happens before step 3 or set non destructive permissions per default.

  3. jancborchardt commented on Oct 22, 2014

    @jancborchardt
    Contributor

    Then the file should maybe only be shared once the popup is closed?

  4. LukasReschke commented on Oct 22, 2014

    @LukasReschke
    ContributorAuthor

    That would be another approach that I'd welcome.

    @PVince81 Is that easily possible?

  5. guruz commented on Oct 23, 2014

    @guruz
    Contributor

    But that's a behaviour change and it might not be obvious that people have to close it ("i clicked share but my friend didnt get the mail"). I vote for having non destructive permissions as default.

  6. jancborchardt commented on Oct 23, 2014

    @jancborchardt
    Contributor

    I agree with that, but having read-only as default is an even bigger change in behavior. Sharing with someone on your same instance should by default be read/write of course.

  7. PVince81 commented on Oct 23, 2014

    @PVince81
    Contributor

    The other alternative would be to only add the share after the dropdown is closed (or the window is closed). Basically: defer changes made in the dropdown until it's closed.

  8. jancborchardt commented on Oct 23, 2014

    @jancborchardt
    Contributor

    @PVince81 that’s what I said above. ;)

  9. PVince81 commented on Oct 23, 2014

    @PVince81
    Contributor

    Ah right, missed that.

  10. modified the milestones: , 2014-sprint-06 on Oct 27, 2014
  11. 77 remaining items

  12. modified the milestones: backlog, on Feb 17, 2016
  13. butonic commented on Feb 17, 2016

    @butonic
    Contributor

    I see two possible solutions:

    1. Add a confirmation button. Clicking it creates the share. Might need UI rework to make it look appealing and less confusing.
    2. Change defaults to readonly. Adding a share then does not need a confirmation action. Creating a writable share needs an extra click on the corresponding checkbox.

    Hope this clarifies that it is not the defaults that are wrong, but the moment we create the share.

  14. ogoffart commented on Feb 17, 2016

    @ogoffart

    The security issue is this one: imagine a funny student who configured his client to automatically delete all new share. The proffessor want to share a folder containing the assignement data and instruction with all the students (the students group) When he does so, he better be quick to remove the write permission before it's too late and all the data is gone.

  15. MorrisJobke commented on Feb 17, 2016

    @MorrisJobke
    Contributor

    The security issue is this one: imagine a funny student who configured his client to automatically delete all new share. The proffessor want to share a folder containing the assignement data and instruction with all the students (the students group) When he does so, he better be quick to remove the write permission before it's too late and all the data is gone.

    🙈 That's a weird scenario.

  16. AnrDaemon commented on Feb 17, 2016

    @AnrDaemon

    Weird, may be.
    But I've seen people doing that "because it is too much spam".

  17. jancborchardt commented on Feb 17, 2016

    @jancborchardt
    Contributor

    configured his client to automatically delete all new share.

    Well – this should simply result in that person unsharing the share from themselves, right? Not in deleting all the files.

  18. guruz commented on Feb 17, 2016

    @guruz
    Contributor

    Well – this should simply result in that person unsharing the share from themselves, right? Not in deleting all the files.

    Not if the student is fast enough with deleting before the professor sets R-only.

    I still think it is a security issue.

  19. LukasReschke commented on Feb 17, 2016

    @LukasReschke
    ContributorAuthor

    I still think it is a security issue.

    👍

  20. PVince81 commented on Oct 27, 2017

    @PVince81
    Contributor

    It is now possible to set default sharing permissions since OC 10.0.3, closing.

  21. lock commented on Aug 2, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  22. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions