Skip to content
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

[BUG] <How to solve Code Analyzer DFA command issue ?> #1500

Closed
madhurimogal812 opened this issue Jun 10, 2024 · 1 comment
Closed

[BUG] <How to solve Code Analyzer DFA command issue ?> #1500

madhurimogal812 opened this issue Jun 10, 2024 · 1 comment

Comments

@madhurimogal812
Copy link

Have you tried to resolve this issue yourself first?

Yes

Bug Description

I ran "sf scanner run dfa" command to scan org using the code analyzer and in the CSV file I got this kind of issue

"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: UnexpectedException: ArrayLoadExpression{properties={FirstChild=true, BeginLine=32, DefiningType_CaseSafe=duplicatecriteriacontactcontroller,LastChild=true, DefiningType=DuplicateCriteriaContactController,EndLine=32, childIdx=0, BeginColumn=40}}: com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:761);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:737);
com.salesforce.graph.vertex.ArrayLoadExpressionVertex.afterVisit(ArrayLoadExpressionVertex.java:58);
com.salesforce.graph.ops.expander.ApexPathExpander.performAfterVisit(ApexPathExpander.java:577);
com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:536);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:523) "

I did not get the exact cause by reading an issue. please let me know how to resolve this issue for the code analyzer.

Output / Logs

No response

Steps To Reproduce

I am running "sf scanner run dfa" command for my code from this link step. no 4.
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/security_review_code_analyzer_scan.htm

Expected Behavior

Provide an error that We can understand after reading

Operating System

Windows 11 Home Single Language

Salesforce CLI Version

v60.15.0

Code Analyzer Plugin (@salesforce/sfdx-scanner) Version

@salesforce/sfdx-scanner (4.2.0)

Java Version

jdk_x64_windows_hotspot_17.0.11_9

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

High

@stephen-carter-at-sf
Copy link
Collaborator

This error message means that your source code contains code that Salesforce Graph Engine currently doesn't handle, requiring us to enhance the graph engine to support it. We apologize for the inconvenience here.

This issue is a duplicate of #1497 and thus I'm closing this issue in favor of that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants