-
Notifications
You must be signed in to change notification settings - Fork 184
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
Folder shared with Secure view can be downloaded. #9369
Comments
Similar but with project space: #9303 |
What is received? A "zip" of the folder? Or some other data format? What do you mean by "the content couldn't be opened"? |
@phil-davis
If this is the text file, the downloaded zip file upon extraction can be opened but the content in the file is read as |
Interesting behavior. Anyway, the file content is not returned - that is "a good thing". For Secure View, the resource name (folder/file path) is OK to be seen by the user. For example, in a UI the user should be able to list files in a folder that is shared with "Secure View" permissions, and select which file they want to view. So I don't think that there is any data leak here. But someone should give an opinion about if this response should be "tidied up".
|
I've manually tested this with the latest build today. These are my findings. |
We should return 403 on that api call if the folder is shared via secure view. |
That case needs a decision about the requirements. Normally, so far, permissions have been cumulative
Is the requirement the same for Secure View? The consequence of cumulative permissions is that sharers can sometimes not realize what total permissions someone has, and they get surprised that they explicitly share to Brian with Secure View, but that Brian can still download the document because he gets Read privs via some other permission grant. |
All permissions in ocis are cumulative except for the
This is a much more interesting case. We need to clarify: Should you be able to download a folder that is shared via secure view? It makes sense if you have read access to the children.
This is definitely a bug. Files should not be added to the archive when there is some sort of error. |
Describe the bug
When a folder is shared with secure view role, it could be downloaded. However if the folder is empty, the file inside get downloaded but the content won't be available for preview.
Steps to reproduce
1.Make a new user
Einstein
2. Create a new folder
test
3. Admin shares
test
withEinstein
withSecure view
role.4. Einstein download the folder.
Expected behavior
The folder download should not be possible.
Actual behavior
The folder could be downloaded.
Suppose there are files and folders inside the folder. They could be downloaded but the content couldn't be opened.
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
OCIS_XXX= Infinite Scale 5.1.0-prealpha+1ef7292e21 Community
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: