-
Notifications
You must be signed in to change notification settings - Fork 50
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] Error and stacktrace: UnexpectedException: ApexValue(ApexSingleValue) #1015
Comments
Hi @efwalter - thanks for reporting the issue.
|
This issue has been linked to a new work item: W-12947586 |
Hi @rmohan20, sure:
KWDATA_PackageIdUpgrade kwIdBatchbatch = new KWDATA_PackageIdUpgrade();
List<List<String>> objectsToProcessList = KWDATA_PackageIdUpgrade.getUpgradeList();
if (objectsToProcessList != NULL && objectsToProcessList.size() > 0) {
List<String> sObjecttoProcessTemp = objectsToProcessList.remove(objectsToProcessList.size() - 1); |
Marking this as a duplicate of #1497 |
@rmohan20 @stephen-carter-at-sf I'm facing this same issue and I need to submit for org for a security review this week. Should I go ahead and submit it or will this violation cause me to fail the security review? |
@jason-actico this is not a violation as such, but a limitation in Graph Engine. See #1497. Please go ahead and submit for security review if this is the only pending issue. The security review team can, of course, still identify additional violations, but if you've done all you can at this point in time I'd recommend you to submit. |
Describe the bug
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: ApexValue(ApexSingleValue) {status=INDETERMINANT, declarationVertex=com.salesforce.graph.vertex.SyntheticTypedVertex@3efc6814, valueVertex=null, resolvedValues={}, returnedFrom=ApexValue(ApexListValue) {status=INITIALIZED, declarationVertex=VariableDeclaration{properties={FirstChild=false, BeginLine=56, Type=List<List>, DefiningType_CaseSafe=kwdata_packageidupgrade, LastChild=true, DefiningType=KWDATA_PackageIdUpgrade, EndLine=56, Name_CaseSafe=objectstoprocesslist, childIdx=1, BeginColumn=28, Name=objectsToProcessList}}, valueVertex=NewListInitExpression{properties={FirstChild=true, BeginLine=56, Type=List<List>, DefiningType_CaseSafe=kwdata_packageidupgrade, LastChild=false, DefiningType=KWDATA_PackageIdUpgrade, EndLine=56, childIdx=0, BeginColumn=51}}, resolvedValues={}, returnedFrom=null, invocableExpression=null, method=null}, invocableExpression=MethodCallExpressionVertex{fullMethodName=objectsToProcessList.remove, referenceVertex=LazyVertex{result=ReferenceExpression{properties={FirstChild=true, Names=[objectsToProcessList], BeginLine=206, DefiningType_CaseSafe=kwdata_authorizeapp, LastChild=false, DefiningType=KWDATA_AuthorizeApp, EndLine=206, Name_CaseSafe=objectstoprocesslist, childIdx=0, BeginColumn=49, ReferenceType=METHOD, Name=objectsToProcessList}}}, chainedNames=[objectsToProcessList], properties={FirstChild=true, FullMethodName=objectsToProcessList.remove, BeginLine=206, FullMethodName_CaseSafe=objectstoprocesslist.remove, DefiningType_CaseSafe=kwdata_authorizeapp, LastChild=false, DefiningType=KWDATA_AuthorizeApp, EndLine=206, MethodName_CaseSafe=remove, childIdx=0, BeginColumn=70, MethodName=remove}}, method=null}: com.salesforce.graph.symbols.PathScopeVisitor.getIndeterminantArrayLoadValue(PathScopeVisitor.java:874);com.salesforce.graph.symbols.PathScopeVisitor.afterVisit(PathScopeVisitor.java:790);com.salesforce.graph.symbols.DefaultSymbolProviderVertexVisitor.afterVisit(DefaultSymbolProviderVertexVisitor.java:686);com.salesforce.graph.vertex.ArrayLoadExpressionVertex.afterVisit(ArrayLoadExpressionVertex.java:58);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:705);com.salesforce.graph.ops.expander.ApexPathExpander.visit(ApexPathExpander.java:544)
To Reproduce
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
"Workaround":
"Urgency":
The text was updated successfully, but these errors were encountered: