-
Notifications
You must be signed in to change notification settings - Fork 159
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
ocm. user cannot change share role #11991
Comments
It looks like two different bugs:
|
We (@2403905 and me) had a little debug session on this. Here's the findings: When changing the sharing role of a federated share, the ocmshareprovider only updates its local storage, but does not update the receivedshare on the remote instance. When creating shares the received share was created via That means the remote side never really gets to see those new permissions. There a multiple things on the receiving end, that rely on the info about received shareds being correct:
In the end this does not really lead to elevated permission (or other security problems) as the real permssion check actually happens when trying to download or upload a file. It's just the client (web) that gets confused about what permissions it actually has on a specific resource. |
reproduced with 7.0.0-rc.3 and web 11.0.4 |
@JammingBen This is the one we just mentioned |
As discussed: The solution is to prevent editing of OCM shares - they can only be created and deleted. |
updating from sharer side was fixed in owncloud/ocis#9980 |
Yes the update on the sharer side works, but that is barely half of what is needed. The share update is not forwarded to the sharee's side, because the http protocol currently lacks an UpdateShare call. (AFAICS it's not part of the spec). |
Version 7.0.0-rc.1+22d80256d6
Web client version 11.0.2
setup: https://owncloud.dev/ocis/development/testing/#running-test-suite-with-federated-sharing-ocm
Steps:
user1
creates folderf2
shares touser2
with edit roleuser1
tries to change share role to viewActual:
user1
sees that role was changed but role was not changed foruser2
-> he can editPROPFIND response body for shared folder doesn't change permissions- > still
DNVCK
so web doesn't disable buttonswhen
user2
tries to create new or edit existing resources -> 500cc @rhafer
The text was updated successfully, but these errors were encountered: