-
Notifications
You must be signed in to change notification settings - Fork 112
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
Implement support for deny ACLs #1798
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
cd8764b
to
7842ce6
Compare
This pull request fixes 20 alerts when merging 532ae59 into b54b159 - view on LGTM.com fixed alerts:
|
… an invalid permission, though its value does correspond to no permissions.
…y all" ResourcePermissions
@glpatcern @gmgigi96 I'm looking for a better alternative for While I'm looking how to add this logic into gateway layer reusing the permission set from the FileInfo and pass it down from the gateway to the storage provider you can replicate this PR against https://github.com/cernbox/reva@qa so we can merge it there and deploy it in our QA infra. EDIT: just did cernbox#3 |
…initions are refactored and consolidated in a single place
@@ -234,6 +236,10 @@ func (fs *Decomposedfs) GetPathByID(ctx context.Context, id *provider.ResourceId | |||
return fs.lu.Path(ctx, node) | |||
} | |||
|
|||
func (fs *Decomposedfs) GetOwners(ctx context.Context, ref *provider.Reference) (*grouppb.Group, error) { |
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.
exported method Decomposedfs.GetOwners should have comment or be unexported
@@ -234,6 +236,10 @@ func (fs *Decomposedfs) GetPathByID(ctx context.Context, id *provider.ResourceId | |||
return fs.lu.Path(ctx, node) | |||
} | |||
|
|||
func (fs *Decomposedfs) GetOwners(ctx context.Context, ref *provider.Reference) (*grouppb.Group, error) { |
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.
exported method Decomposedfs.GetOwners should have comment or be unexported
Superseded by #1856 |
This is still work in progress, but we thought to expose it earlier to gather feedback. Fixes #1792.
The important aspect especially for ownCloud is that now an empty permission set (equivalent to''
in WebDAV terms, and0
for the integer representation) is considered valid. So the introduced change does not break the existing APIs but does represent a breaking change from a semantic point of view.EDIT: to avoid breaking any existing assumption, the denial permission gets for now a different bit,
PermissionNone
.PermissionInvalid
is still defined as0
.