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] InternalExecutionError has been thrown when running sf scanner run dfa #1587

Closed
Jellybean0708 opened this issue Aug 22, 2024 · 1 comment

Comments

@Jellybean0708
Copy link

Have you tried to resolve this issue yourself first?

Yes

Bug Description

An InternalExecutionError error has been thrown during run sf scanner dfa.
Here is code.
image

Output / Logs

"4","3","D:\PMS e-cloudsoft\ec-print-gitee\eDocument DX-master\force-app\main\default\classes\ECP_DataMappingCtrl.cls","409","45","ECP_DataMappingCtrl","getMasterTableNames","","","","InternalExecutionError","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=419, DefiningType_CaseSafe=ecp_datamappingctrl, LastChild=false, DefiningType=ECP_DataMappingCtrl, EndLine=419, childIdx=0, BeginColumn=48}}: 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)","https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/apexflsviolation-rule.html","InternalExecutionError","sfge"

Steps To Reproduce

Run the below command with sf scanner extension:
sfdx scanner run dfa --format csv --outfile CodeAnalyzerDFA.csv --target="./" --projectdir="./" --category="Security" --sfgejvmargs "-Xmx10g" --pathexplimit -1 --rule-thread-count 2 --rule-thread-timeout 3600000

Expected Behavior

The result should show the code issue instead of the Internal Execution error.

Operating System

Windows 11

Salesforce CLI Version

@salesforce\cli\2.42.6 win32-x64 node-v20.12.2

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

@salesforce/sfdx-scanner: 4.3.2

Java Version

java version "17.0.9" 2023-10-17 LTS

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

Low

@stephen-carter-at-sf
Copy link
Collaborator

Duplicate of 1497.

@stephen-carter-at-sf stephen-carter-at-sf closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
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