You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sharing a file does set while to rw for short time #11707
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.
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.
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.
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.
Add a confirmation button. Clicking it creates the share. Might need UI rework to make it look appealing and less confusing.
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.
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.
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.
Activity
LukasReschke commentedon Oct 22, 2014
What currently happens is:
We have to make sure that step 4 either happens before step 3 or set non destructive permissions per default.
jancborchardt commentedon Oct 22, 2014
Then the file should maybe only be shared once the popup is closed?
LukasReschke commentedon Oct 22, 2014
That would be another approach that I'd welcome.
@PVince81 Is that easily possible?
guruz commentedon Oct 23, 2014
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.
jancborchardt commentedon Oct 23, 2014
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.
PVince81 commentedon Oct 23, 2014
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.
jancborchardt commentedon Oct 23, 2014
@PVince81 that’s what I said above. ;)
PVince81 commentedon Oct 23, 2014
Ah right, missed that.
77 remaining items
butonic commentedon Feb 17, 2016
I see two possible solutions:
Hope this clarifies that it is not the defaults that are wrong, but the moment we create the share.
ogoffart commentedon Feb 17, 2016
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.
MorrisJobke commentedon Feb 17, 2016
🙈 That's a weird scenario.
AnrDaemon commentedon Feb 17, 2016
Weird, may be.
But I've seen people doing that "because it is too much spam".
jancborchardt commentedon Feb 17, 2016
Well – this should simply result in that person unsharing the share from themselves, right? Not in deleting all the files.
guruz commentedon Feb 17, 2016
Not if the student is fast enough with deleting before the professor sets R-only.
I still think it is a security issue.
LukasReschke commentedon Feb 17, 2016
👍
PVince81 commentedon Oct 27, 2017
It is now possible to set default sharing permissions since OC 10.0.3, closing.
lock commentedon Aug 2, 2019
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.