Open luke10481 opened 12 months ago
Hi @luke10481,
Can you quick-eval any of the sub-expressions to figure out where you lose your result? Here is a couple of questions I'd ask if I were to debug this:
dbClient
predicate give any results?
dbClient().getMember("connection")
give any results?API::moduleImport("dbutils")
give any results?By quick-eval'ing iteratively larger sub expressions you can investigate which expression is causing the full evaluation to give no results.
Hi @luke10481,
Can you quick-eval any of the sub-expressions to figure out where you lose your result? Here is a couple of questions I'd ask if I were to debug this:
Does quick-evaluation of the
dbClient
predicate give any results?
- If yes: Does
dbClient().getMember("connection")
give any results?- If no: Does quick-evaluation of
API::moduleImport("dbutils")
give any results?By quick-eval'ing iteratively larger sub expressions you can investigate which expression is causing the full evaluation to give no results.
My test result is here.After I run quick evaluation:connection.It should display three result.But just one result.
If the connection() is in function,but not in class.That's no problem.
Thanks for those screenshots 🙇.
I talked with the Python team, and they said that they will investigate this issue more closely.
Will make sure to keep you updated!
Can this problem be solved through the API of codeql-python now? Do I need to wait for you to fix it? This problem will lead to some vulnerabilities that cannot be discovered.
Hi @luke10481 👋 My apologies for the delayed response. The issue you have encountered here is a known limitation in Python CodeQL analysis. We will take your report into account as we prioritize and act on this gap. I am not aware of any workarounds you could employ, but now that we've had some time to consider the issue, I'll check again with the team and get back to you here.
I am not aware of any workarounds you could employ, but now that we've had some time to consider the issue, I'll check again with the team and get back to you here.
I can confirm that there are no known workarounds to this issue.
when evaluate """private API::Node connection()""", the query result should find """self.orm.connection()""".But the query result is none
python demo here