Skip to content

Conversation

@klammrock
Copy link

There is no test covering this case: a user must have more than just the AUTHORIZE permission to grant permissions to others.

patch by Valery Baranov klammrock@gmail.com


executeNet(String.format("CREATE ROLE %s WITH LOGIN = TRUE AND password='%s'", user, pass));

final String idm_user = "idm_user";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename idm_user to "simple_user"

useUser(idm_user, idm_user);
assertUnauthorizedQuery("User idm_user has no SELECT permission on <table check_permissions.t1> or any of its parents",
"SELECT * FROM check_permissions.t1");
assertUnauthorizedQuery("User idm_user has no SELECT permission on <table check_permissions.t1> or any of its parents",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check that after this exception user "user" still has no select permission.

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.

2 participants