You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
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
The text was updated successfully, but these errors were encountered:
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);
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
The text was updated successfully, but these errors were encountered: