Uh oh!
There was an error while loading. Please reload this page.
Check the permission of the underlying storage - #11041
Conversation
nickvergessen
commented
Sep 4, 2018
|
rullzer
commented
Sep 5, 2018
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
74971a2Comparerullzer
commented
Sep 5, 2018
@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. |
| // Not a valid action for Shared Cache | ||
| } | ||
| public function getFolderContentsById($fileId) { |
There was a problem hiding this comment.
this shouldn't be needed as it's the same as the base method
74971a2 to
b32b9dbCompareUh oh!
There was an error while loading. Please reload this page.
rullzer
commented
Sep 6, 2018
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
a2725c3Comparerullzer
commented
Sep 6, 2018
Ok all good now I think... @nickvergessen@icewind1991 please have yet another look. |
nickvergessen
commented
Sep 13, 2018
@icewind1991 your +1 still counts? |
icewind1991
commented
Sep 13, 2018
👍 |
Else shares might expose more permissions than the storage actually
providers.
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl