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
Description:
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: ApexStandardValue{apexType='System.Schema'} ApexValue(SystemSchema) {status=INITIALIZED, declarationVertex=null, valueVertex=null, resolvedValues={}, returnedFrom=null, invocableExpression=null, method=null}: com.salesforce.graph.symbols.apex.system.SystemSchema.executeMethod(SystemSchema.java:106);com.salesforce.graph.symbols.PathScopeVisitor.afterMethodCall(PathScopeVisitor.java:659);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterMethodCall(DefaultSymbolProviderVertexVisitor.java:318);com.salesforce.graph.ops.expander.ApexPathExpander.handleMethodCall(ApexPathExpander.java:681);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:532);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:452)
Method code where the error occurs:
`
public static Map<String,String> getsObjectTabIcons() {
Map<String,String> sObjectIcons = new Map<String,String>();
// get sObject tab icons
for(Schema.DescribeTabSetResult tsr : Schema.describeTabs()){
for(Schema.DescribeTabResult tr : tsr.getTabs()) {
for (Schema.DescribeIconResult ir : tr.getIcons()) {
if (ir.getContentType() == 'image/svg+xml'){
String url = ir.getUrl().substringBeforeLast('.svg');
List<String> urlElements = url.split('/');
sObjectIcons.put(tr.getSobjectName(),urlElements[urlElements.size() - 2] + ':' + urlElements[urlElements.size() - 1]);
}
}
}
}
// add non tab icons
Map<String,String> nonTabIcons = new Map<String,String>{
'Task' => 'standard:task'
};
for (String sObjectName : nonTabIcons.keySet()){
if (!sObjectIcons.containsKey(sObjectName)){
sObjectIcons.put(sObjectName, nonTabIcons.get(sObjectName));
}
}
return sObjectIcons;
} `
Steps To Reproduce:
I ran the following scanner:
sf scanner run dfa -f html -o QA/appexchange/CodeAnalyzerDFA.html -t './' -c 'Security' --projectdir='./'
Desktop:
Provide these details:
Operating System: Mac OS
Code Analyzer version: v3.20.0
Salesforce CLI version: @salesforce/cli/2.23.20 win32-x64 node-v18.19.0
Additional Context:
Workaround:
Tried the directives to exclude from the engine, but it doesn't work
Urgency:
Medium
The text was updated successfully, but these errors were encountered:
Description:
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: ApexStandardValue{apexType='System.Schema'} ApexValue(SystemSchema) {status=INITIALIZED, declarationVertex=null, valueVertex=null, resolvedValues={}, returnedFrom=null, invocableExpression=null, method=null}: com.salesforce.graph.symbols.apex.system.SystemSchema.executeMethod(SystemSchema.java:106);com.salesforce.graph.symbols.PathScopeVisitor.afterMethodCall(PathScopeVisitor.java:659);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterMethodCall(DefaultSymbolProviderVertexVisitor.java:318);com.salesforce.graph.ops.expander.ApexPathExpander.handleMethodCall(ApexPathExpander.java:681);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:532);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:452)
Method code where the error occurs:
`
public static Map<String,String> getsObjectTabIcons() {
Steps To Reproduce:
I ran the following scanner:
sf scanner run dfa -f html -o QA/appexchange/CodeAnalyzerDFA.html -t './' -c 'Security' --projectdir='./'
Desktop:
Provide these details:
Operating System: Mac OS
Code Analyzer version: v3.20.0
Salesforce CLI version: @salesforce/cli/2.23.20 win32-x64 node-v18.19.0
Additional Context:
Workaround:
Tried the directives to exclude from the engine, but it doesn't work
Urgency:
Medium
The text was updated successfully, but these errors were encountered: