-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing graph Engine error in DFA report #1702
Comments
Duplicate of #1497 |
@stephen-carter-at-sf - Could you please mention here, is this issue a blocker for security review? |
@keshav-ksolves , no. You can document this the same way you document any other false positive. |
@jfeingold35 - Thanks for the response. Could you please also mention the possible causes so that I can mention in the false positive report. |
@keshav-ksolves , short version: we're encountering an |
Hi @jfeingold35 - Sure, attaching the logs for you |
Hm. It looks like there's a few different places where this is being caused. |
Sure @jfeingold35 ``
`` And below is the code of CallHistorySelector.getCredsOfCurrentUser()
|
Thanks. We'll see if we can use this to reproduce it, and we'll let you know. |
Sure @jfeingold35 , will be waiting for your response |
@keshav-ksolves , thank you. It looks like the problem is the syntax you're using in
then I believe it should resolve the issue, at least for now. |
This issue has been linked to a new work item: W-17506930 |
Have you tried to resolve this issue yourself first?
Yes
Bug Description
We are encountering an error in the DFA report, which is necessary to get resolved for submitting our application for the Salesforce security review. The error message is as follows:
"Graph Engine identified your source and sink, but you must manually verify that you have a sanitizer in this path. Then, add an engine directive to skip the path. Next, create a Github issue for the Code Analyzer team that includes the error and stack trace. After we fix this issue, check the Code Analyzer release notes for more info. Error and stacktrace: IndexOutOfBoundsException: Index 2 out of bounds for length 2: java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64);java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70);java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248);java.base/java.util.Objects.checkIndex(Objects.java:374);java.base/java.util.ArrayList.get(ArrayList.java:459);java.base/java.util.Collections$UnmodifiableList.get(Collections.java:1310)"
Output / Logs
No response
Steps To Reproduce
Steps to reproduce the behavior:
Open VS Code
Execute the following command:
sf scanner run dfa --format csv --outfile CodeAnalyzerDFA.csv --target ./ --projectdir ./ --category Security
Expected Behavior
We need to submit our app for security review, we need to confirm whether this error will not affect our security review process.
Operating System
Ubuntu 22.04.3
Salesforce CLI Version
@salesforce/cli/2.70.7 linux-x64 node-v22.11.0
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
@salesforce/sfdx-scanner 4.2.0 (latest-beta)
Additional Context (Screenshots, Files, etc)
No response
Workaround
No response
Urgency
Critical
The text was updated successfully, but these errors were encountered: