Open phil-davis opened 2 years ago
With PR #518 this is working OK.
After only setting 'settings' in the whitelist, several problems arise:
There is https://github.com/owncloud/guests/blob/master/lib/AppWhitelist.php#L33
public const CORE_WHITELIST = ',core,files,guests';
files_sharing
is not in that list. So, if the admin does not put files_sharing
in the specified whitelist, then sharing is not available to guests, and so guests do not see the received shares - which means they see nothing.
What is the requirement?
Maybe there is a requirement that the admin can prevent guests from doing any resharing, from creating public links etc. - the admin requires that guests cannot do any new sharing actions. But guests should be able to see and work with the resources that are shared with them? IMO sorting out some more specifically-defined requirements will need to happen in the future.
In practice, to be useful, an admin needs to always put files_sharing
in the whitelist. IMO things work OK then?
Great findings, Gerald. Thank you! I agree with Phil: if the admin narrows down things to become unusable, then its his responsibility. Not a blocker for now, but good to follow up later.
After adding files_sharing and files_external the functions work again. No blocker from my side
However, we should possibly write in the admin docs that it does not make sense to disable the apps setting, files_external, files_sharing and files trashbin for guest users. This is especially important for files_trashbin, because if this has been removed from the white list, a guest user can delete files directly without loading them into the trashbin of the owner.
Steps to reproduce
The whitelist is set to just "settings" so that guest users should just be able to see
Expected behaviour
When opening the details for a file, there should not be any Sharing, Tags or Versions panels.
There should not be any option to "create a new textfile", because files_texteditor is not whitelisted.
Actual behaviour
It seems that some apps themselves respect the guest whitelist, but some core UI elements still appear. And other apps, like systemtags do not respect the whitelist at all.
Server configuration
Current core master and latest master of guests, files_texteditor etc.