-
Notifications
You must be signed in to change notification settings - Fork 183
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 #10546
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. |
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: