-
问题是否已经被报告?
重现步骤申请SQL查询权限 预期外的结果日志文本[2022-06-17 15:18:14,444][MainThread:140204442576704][task_id:default][query_privileges.py:85][ERROR]- 无法校验查询语句权限,增值3.0云时TEST环境,select * from sal_so a limit 100,Traceback (most recent call last):
File "/opt/archery/sql/query_privileges.py", line 69, in query_priv_check
table_ref = _table_ref(sql_content, instance, db_name)
File "/opt/archery/sql/query_privileges.py", line 409, in _table_ref
query_tree = engine.query_print(instance=instance, db_name=db_name, sql=sql_content).get('query_tree')
File "/opt/archery/sql/engines/goinception.py", line 163, in query_print
print_info = self.query(db_name=db_name, sql=sql).to_dict()[1]
File "/opt/archery/sql/engines/goinception.py", line 132, in query
conn = self.get_connection()
File "/opt/archery/sql/engines/goinception.py", line 36, in get_connection
self.conn = MySQLdb.connect(host=go_inception_host, port=go_inception_port, charset='utf8mb4',
File "/opt/venv4archery/lib/python3.9/site-packages/MySQLdb/__init__.py", line 130, in Connect
return Connection(*args, **kwargs)
File "/opt/venv4archery/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in __init__
super().__init__(*args, **kwargs2)
TypeError: connect() argument 1 must be str, not None 版本1.8.5 部署方式Docker 是否还有其他可以辅助定位问题的信息?比如数据库、浏览器、goInception等官网文档 DOCKER 安装 |
Beta Was this translation helpful? Give feedback.
Answered by
hhyo
Jun 18, 2022
Replies: 2 comments 2 replies
-
未配置goinception,查询权限检验和脱敏依靠其做语法解析,管理员不做权限检验故不会报错 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hhyo
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
未配置goinception,查询权限检验和脱敏依靠其做语法解析,管理员不做权限检验故不会报错