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 - UnimplementedMethodException: ApexStringValue:getSalesforceBaseUrl #1044

Closed
az-oolloow opened this issue Apr 4, 2023 · 2 comments
Labels
BUG P2 Malfunctioning Often duplicate This issue or pull request already exists SFGE Issues related to the Salesforce Graph Engine

Comments

@az-oolloow
Copy link

Running DFA in plugin 3.10.0 the code that looks like so:

String url = URL.getSalesforceBaseUrl().toExternalForm();

Throws an exception:

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: UnimplementedMethodException: ApexStringValue:getSalesforceBaseUrl, vertex=MethodCallExpressionVertex{fullMethodName=URL.getSalesforceBaseUrl, referenceVertex=LazyVertex{result=ReferenceExpression{properties={FirstChild=true, Names=[URL], BeginLine=575, DefiningType_CaseSafe=photogallerycontroller, LastChild=true, DefiningType=PhotoGalleryController, EndLine=575, Name_CaseSafe=url, childIdx=0, BeginColumn=22, ReferenceType=METHOD, Name=URL}}}, chainedNames=[URL], properties={FirstChild=true, FullMethodName=URL.getSalesforceBaseUrl, BeginLine=575, FullMethodName_CaseSafe=url.getsalesforcebaseurl, DefiningType_CaseSafe=photogallerycontroller, LastChild=true, DefiningType=PhotoGalleryController, EndLine=575, MethodName_CaseSafe=getsalesforcebaseurl, childIdx=0, BeginColumn=26, MethodName=getSalesforceBaseUrl}}: com.salesforce.graph.symbols.apex.ApexStringValue.apply(ApexStringValue.java:394);com.salesforce.graph.symbols.PathScopeVisitor.handleApexValueMethod(PathScopeVisitor.java:1462);com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:1222);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:749);com.salesforce.graph.vertex.MethodCallExpressionVertex.afterVisit(MethodCallExpressionVertex.java:77);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:721)
@rmohan20 rmohan20 added the BUG P2 Malfunctioning Often label Apr 26, 2023
@git2gus
Copy link

git2gus bot commented Apr 26, 2023

This issue has been linked to a new work item: W-13108888

@stephen-carter-at-sf stephen-carter-at-sf added the SFGE Issues related to the Salesforce Graph Engine label May 23, 2024
@stephen-carter-at-sf stephen-carter-at-sf added the duplicate This issue or pull request already exists label Jun 3, 2024
@stephen-carter-at-sf
Copy link
Collaborator

Marking this as a duplicate of #1497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG P2 Malfunctioning Often duplicate This issue or pull request already exists SFGE Issues related to the Salesforce Graph Engine
Projects
None yet
Development

No branches or pull requests

3 participants