-
Notifications
You must be signed in to change notification settings - Fork 113
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
Enhancement: calculate and expose actual file permission set #1368
Merged
ishank011
merged 41 commits into
cs3org:master
from
butonic:share-permissions-and-resource-permissions
Jan 8, 2021
Merged
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
8e485c2
prevent sharing with increased permissions
butonic a0cd57f
refactor permission mapping to a role struct
butonic 30af05b
stop faking dav permissions
butonic 2974e0c
make ocis driver calculate permissions
butonic d0c6fdc
return all permissions when user is owner wherever possible
butonic c8283b0
refactor reading and assembling permissions
butonic ef0c8f4
fake permissions for share recipients at the driver level
butonic 8de73c2
fix permission conversion
butonic bedbc4e
fix lint, less expected failed tests
butonic 7add009
less expected failures
butonic 2a5d5b0
add changelog
butonic 15c657e
less expected failures
butonic cd48234
cleanup after rebase
butonic 11e06d0
enforce public share permissions
butonic ef6daa5
implement files drop
butonic 8683de2
file shares never have delete or create permission
butonic 5e7afad
fix typo
butonic 390604c
files never have a create permission
butonic cf51af0
differentiate not found vs unauthenticated for link tokens
butonic 68875a7
not found token should return 403
butonic 997ca40
guard against missing permissionset
butonic 59c9f95
differentiate between oc:permissions and ocs:share-permissions
butonic 98e5117
ace read flag grants GetPath
butonic c3a2fa5
forward more error types
butonic 498fa3f
update expected failures
butonic 9500fbc
return missing link target as 404
butonic 3fda868
fix permission check
butonic f3f558a
treat permission denied as 401
butonic 392a83f
update local test configs
butonic d85b5b6
different default permissions
butonic d6321bc
handle file individual share permissions
butonic 5e8fa19
update unexpected passes
butonic 7f2ca3a
Apply suggestions from code review
butonic 605fb1f
clarify ocPublicPermToRole
butonic 92db0fd
update expected test failures and changelog
butonic e36dd46
parent owner becomes owner of uploaded files
butonic 0f14362
parent owner becomes owner of new folders
butonic 074d616
fix home creation
butonic 79f82c6
update expected failures and changelog
butonic c69f470
fix lint
butonic c3cbdd1
cleanup permissions rendering for propfind
butonic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
changelog/unreleased/share-permissions-and-resource-permissions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Enhancement: calculate and expose actual file permission set | ||
|
||
Instead of hardcoding the permissions set for every file and folder to ListContainer:true, CreateContainer:true and always reporting the hardcoded string WCKDNVR for the WebDAV permissions we now aggregate the actual cs3 resource permission set in the storage drivers and correctly map them to ocs permissions and webdav permissions using a common role struct that encapsulates the mapping logic. | ||
|
||
https://github.com/cs3org/reva/pull/1368 | ||
https://github.com/owncloud/ocis/issues/552 | ||
https://github.com/owncloud/ocis/issues/762 | ||
https://github.com/owncloud/ocis/issues/763 | ||
https://github.com/owncloud/ocis/issues/893 | ||
https://github.com/owncloud/ocis/issues/1126 | ||
https://github.com/owncloud/ocis-reva/issues/47 | ||
https://github.com/owncloud/ocis-reva/issues/315 | ||
https://github.com/owncloud/ocis-reva/issues/316 | ||
https://github.com/owncloud/product/issues/270 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we need log level info here?
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.
it was info before. see https://github.com/cs3org/reva/pull/1368/files#diff-187ee2d4618b4a46049ec9c40c111e1420baecb2622be545ec0c9e8cab196a07L119
could you raise an issue or try linkin an issue that deals with log levels?