-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Check the permission of the underlying storage #11041
Check the permission of the underlying storage #11041
Conversation
|
Ok so the reason it does boom is because of
Which is the function called from the shared cache. This gives back the actual path instead of the jailed one. Making the getPermissions do 💥. @icewind1991 do we have to fixed the shared cache for this? |
48957a7
to
74971a2
Compare
@icewind1991 please have a look if 74971a2 makes sense. It does to me but you know more about the internal dark magic of the storages. |
apps/files_sharing/lib/Cache.php
Outdated
@@ -169,4 +169,9 @@ private function getOwnerDisplayName() { | |||
public function clear() { | |||
// Not a valid action for Shared Cache | |||
} | |||
|
|||
public function getFolderContentsById($fileId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldn't be needed as it's the same as the base method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe late night hacking ;)
74971a2
to
b32b9db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still works
It seems this makes other stuff do 💥. (yay for part files). |
Else shares might expose more permissions than the storage actually providers. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
isCreatable only works on folders isUpdatable if the file is not there but it is a part file also has to be checked on the folder Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Now that we actually check thepermissions properly we have to update the tests. * We checked an invalid path * We checked from wrong permissions (files never have CREATE permissions for example) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
b32b9db
to
a2725c3
Compare
Ok all good now I think... @nickvergessen @icewind1991 please have yet another look. |
@icewind1991 your +1 still counts? |
👍 |
Else shares might expose more permissions than the storage actually
providers.
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl