Quanlong Huang created IMPALA-6301:
--------------------------------------
Summary: Security tests failed when user's group name contains dots
Key: IMPALA-6301
URL: https://issues.apache.org/jira/browse/IMPALA-6301
Project: IMPALA
Issue Type: Bug
Components: Security
Reporter: Quanlong Huang
Assignee: Quanlong Huang
I encountered the following errors when I compiled and ran tests of Impala.
{code}
ERROR at setup of TestGrantRevoke.test_role_update[exec_option: {'batch_size':
0, 'num_nodes': 0, 'disable_codegen_rows_threshold': 0, 'disable_codegen':
False, 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} |
table_format: t
ext/none]
authorization/test_grant_revoke.py:47: in setup_method
self.__test_cleanup()
authorization/test_grant_revoke.py:72: in __test_cleanup
self.client.execute("grant role grant_revoke_test_admin to group %s" %
group_name)
common/impala_connection.py:160: in execute
return self.__beeswax_client.execute(sql_stmt, user=user)
beeswax/impala_beeswax.py:173: in execute
handle = self.__execute_query(query_string.strip(), user=user)
beeswax/impala_beeswax.py:339: in __execute_query
handle = self.execute_query_async(query_string, user=user)
beeswax/impala_beeswax.py:335: in execute_query_async
return self.__do_rpc(lambda: self.imp_service.query(query,))
beeswax/impala_beeswax.py:460: in __do_rpc
raise ImpalaBeeswaxException(self.__build_error_message(b), b)
E ImpalaBeeswaxException: ImpalaBeeswaxException:
E INNER EXCEPTION: <class 'beeswaxd.ttypes.BeeswaxException'>
E MESSAGE: AnalysisException: Syntax error in line 1:
E grant role grant_revoke_test_admin to group quanlong.huang
E ^
E Encountered: .
E Expected
E
E CAUSED BY: Exception: Syntax error
{code}
There're some other errors but with the same type. The problem is that my group
name is 'quanlong.huang' which contains a dot in it and cause a syntax error.
We need to quote the group name in all the "GRANT ROLL xxx TO GROUP yyy"
queries.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)