Skip to content
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

Fixes #936 - Fix setacl command exception #959

Merged
merged 1 commit into from
Mar 3, 2018
Merged

Conversation

mouchar
Copy link
Contributor

@mouchar mouchar commented Mar 2, 2018

Grantee.display_name may not be initialize for some Grantee types,
most notably for xsi:type="Group".
However, tolower() is called on this attribute in ACL.revoke(),
raising unhandled AttributeError. To prevent it, let's change
default value of Grantee.display_name to empty string with almost
identical semantical value, but allowing lower() call to succeed.

I also applied the Boolean Distributive law to simplify condition
in ACL.revoke().

Grantee.display_name may not be initialize for some Grantee types,
most notably for xsi:type="Group".
However, tolower() is called on this attribute in ACL.revoke(),
raising unhandled AttributeError. To prevent it, let's change
default value of Grantee.display_name to empty string with almost
identical semantical value, but allowing lower() call to succeed.

I also applied the Boolean Distributive law to simplify condition
in ACL.revoke().
@fviard fviard merged commit e788d0c into s3tools:master Mar 3, 2018
@fviard
Copy link
Contributor

fviard commented Mar 3, 2018

@mouchar Thank you very much for having investigating this issue.
Don't hesitate if you see other things in the acl module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants