-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Java provider rules not triggering for patterns ending with * or (*) #736
Comments
This issue is currently awaiting triage. |
CC @kthatipally |
I have been taking a quick look at this and it seems that there is a problem when matching method calls in general. We will need to take a deeper look into it. |
I have discovered some things after investigating. Having a
My conclusions after this:
|
I wonder if for method searches it makes sense to remove the arguments if there is a As for the static functions, I do wonder if there is a special parameter that we have to add in the search to consider these? |
it seems that the issue still exist, is there any plan to fix it? |
sample1.zip
Is there an existing issue for this?
Konveyor version
v0.6.0-alpha.2
Priority
Major
Current Behavior
Hi team!
I have created sample Java files to test analysis against. When running assessments, we noticed rules with patterns ending in * or (*) are not triggering. This results in missing issues in the generated static report.
For the attempt I have run for this issue the command I ran was:
./kantra analyze --input ./sample1/ --target azure-appservice --output ./sample1-output --overwrite
I believe on the sample code, which is attached, this app-service rule should have triggered and added an incident in the static report. However, I only observe a single rule being triggered with respect to Windows style pathing in the code.
Please let me know if I performed any steps/categorized incorrectly! This is my first issue in this repo 😄
Expected Behavior
The rule linked above would trigger and additional incidents would appear in the static report.
How Reproducible
Always (Default)
Steps To Reproduce
azure-appservice
.location: METHOD_CALL
pattern: java.lang.System.getenv(*)
location: METHOD_CALL
pattern: java.lang.System.getProperty(*)
Environment
Anything else?
The result of the latest analysis on the attached sample I performed using the above Kantra version. Yields only one issue:

This view is to show the sample code with the Java function calls. I believe we should see more issues when these are present in the code.

The text was updated successfully, but these errors were encountered: