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

InternalExecutionError #1682

Closed
mohammadArbaz1182 opened this issue Nov 25, 2024 · 1 comment
Closed

InternalExecutionError #1682

mohammadArbaz1182 opened this issue Nov 25, 2024 · 1 comment

Comments

@mohammadArbaz1182
Copy link

mohammadArbaz1182 commented Nov 25, 2024

Have you tried to resolve this issue yourself first?

Yes

Bug Description

{
"ruleName": "InternalExecutionError",
"severity": 3,
"message": "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: NullPointerException: null: java.base/java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(ConcurrentSkipListMap.java:1458);com.salesforce.graph.vertex.SyntheticTypedVertex.get(SyntheticTypedVertex.java:41);com.salesforce.graph.symbols.apex.ApexMapValue.apply(ApexMapValue.java:188);com.salesforce.graph.symbols.PathScopeVisitor.handleApexValueMethod(PathScopeVisitor.java:1487);com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:1242);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:800)",
"category": "InternalExecutionError",
"url": "https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/apexflsviolation-rule.html",
"sinkLine": null,
"sinkColumn": null,
"sinkFileName": "",
"sourceLine": 558,
"sourceColumn": 31,
"sourceType": "JiraAppController",
"sourceMethodName": "getSearchResults"
}

Output / Logs

@AuraEnabled
public static List getSearchResults(String searchKey, String jiraOrgId){
List results = new List();
JiraService service = new JiraService(jiraOrgId);
Map<String, Object> m = service.getSearchResults(searchKey);
List sections = (List) m.get('sections');
Object sectionData = sections[0];
Map<String, Object> section = (Map<String, Object>)sectionData;
List issueList = (List) section.get('issues');
for (Object issue : issueList) {
Map<String, Object> issueInstance = (Map<String, Object>)issue;
JiraIssue issueWrapper = new JiraIssue();
issueWrapper.id = String.valueOf(issueInstance.get('id'));
issueWrapper.key = (String)issueInstance.get('key');
issueWrapper.summary = (String)issueInstance.get('summaryText');
results.add(issueWrapper);

        // System.debug('issueWrapper--->'+ issueWrapper);
    }
    // System.debug('results--->'+ results);
    return results;
}

Steps To Reproduce

sfdx scanner run dfa --target "force-app/main/default/classes" --format "json" --outfile "SyncSourceWebService.json" --category Security

when im running this command getting issue in above method,

Expected Behavior

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: NullPointerException: null: java.base/java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(ConcurrentSkipListMap.java:1458);com.salesforce.graph.vertex.SyntheticTypedVertex.get(SyntheticTypedVertex.java:41);com.salesforce.graph.symbols.apex.ApexMapValue.apply(ApexMapValue.java:188);com.salesforce.graph.symbols.PathScopeVisitor.handleApexValueMethod(PathScopeVisitor.java:1487);com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:1242);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:800)"

Operating System

Ubuntu 24.04.1 LTS

Salesforce CLI Version

@salesforce/cli/2.67.7 linux-x64 node-v22.11.0

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

@salesforce/sfdx-plugin-lwc-test 1.2.1

Java Version

openjdk version "11.0.25" 2024-10-15

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

Moderate

@jfeingold35
Copy link
Collaborator

This category of issue has been consolidated under issue #1497 , so I'm closing this one and linking to 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