-
Notifications
You must be signed in to change notification settings - Fork 76
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
BitSetCheckedAuthorizationProvider#authorizeUserPriv without DbName cannot contact to waggle-dance #158
Comments
That sounds like a good plan, would you consider contributing a PR for this? |
Sounds reasonable, a PR would be fantastic, ideally with a unit test to cover this if possible. |
I have no experience to make an effort for open-source project. After testing it well, I will try to contribute a PR. I have just tested like this:
It can work. |
Elvis0607
added a commit
to Elvis0607/waggle-dance
that referenced
this issue
Mar 21, 2019
…r#authorizeUserPrivcannot. See [ExpediaGroup#158](ExpediaGroup#158)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when using BitSetCheckedAuthorizationProvider to do authorization, the dbname is null. Waggle dance cannot process the request.
protected boolean authorizeUserPriv(Privilege[] inputRequiredPriv,
boolean[] inputCheck, Privilege[] outputRequiredPriv,
boolean[] outputCheck) throws HiveException {
PrincipalPrivilegeSet privileges = hive_db.get_privilege_set(
HiveObjectType.GLOBAL, null, null, null, null, this.getAuthenticator()
.getUserName(), this.getAuthenticator().getGroupNames());
return authorizePrivileges(privileges, inputRequiredPriv, inputCheck,
outputRequiredPriv, outputCheck);
}
I think waggle dance can change to
public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names)
throws MetaException, TException {
DatabaseMapping mapping;
}
The text was updated successfully, but these errors were encountered: