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 #1188

Closed
RiyazRanger opened this issue Sep 20, 2023 · 4 comments
Closed

[BUG] InternalExecutionError #1188

RiyazRanger opened this issue Sep 20, 2023 · 4 comments
Labels
BUG P3 Rarely Malfunction duplicate This issue or pull request already exists SFGE Issues related to the Salesforce Graph Engine

Comments

@RiyazRanger
Copy link

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: TodoException: What should I do if ApexValue from StandardCondition is not an ApexBooleanValue, ApexCustomValue, ApexForLoopValue, or ApexSingleValue: ApexValue=ApexValue(ApexSoqlValue) {status=INITIALIZED, declarationVertex=null, valueVertex=SoqlExpression{properties={FirstChild=true, BeginLine=86, DefiningType_CaseSafe=allocationtablehandler, LastChild=false, Query=[SELECT Id, PermissionSet.Name,AssigneeId FROM PermissionSetAssignment WHERE AssigneeId = :Userinfo.getUserId() WITH SECURITY_ENFORCED], DefiningType=AllocationTableHandler, EndLine=86, childIdx=0, BeginColumn=62}}, resolvedValues={}, returnedFrom=null, invocableExpression=null, method=null}, parent=Unknown{conditionType=UNKNOWN, properties={FirstChild=true, BeginLine=90, DefiningType_CaseSafe=allocationtablehandler, LastChild=false, DefiningType=AllocationTableHandler, EndLine=90, childIdx=0, BeginColumn=41}}, vertex=MethodCallExpressionVertex{fullMethodName=psa.PermissionSet.Name.contains, referenceVertex=LazyVertex{result=ReferenceExpression{properties={FirstChild=true, Names=[psa, PermissionSet, Name], BeginLine=90, DefiningType_CaseSafe=allocationtablehandler, LastChild=false, DefiningType=AllocationTableHandler, EndLine=90, Name_CaseSafe=psa.permissionset.name, childIdx=0, BeginColumn=18, ReferenceType=METHOD, Name=psa.PermissionSet.Name}}}, chainedNames=[psa, PermissionSet, Name], properties={FirstChild=true, FullMethodName=psa.PermissionSet.Name.contains, BeginLine=90, FullMethodName_CaseSafe=psa.permissionset.name.contains, DefiningType_CaseSafe=allocationtablehandler, LastChild=true, DefiningType=AllocationTableHandler, EndLine=90, MethodName_CaseSafe=contains, childIdx=0, BeginColumn=41, MethodName=contains}}: com.salesforce.rules.fls.apex.operations.SchemaBasedValidationAnalyzer.getDerivedApexValue(SchemaBasedValidationAnalyzer.java:89);com.salesforce.rules.fls.apex.operations.SchemaBasedValidationAnalyzer.getDerivedApexValue(SchemaBasedValidationAnalyzer.java:117);com.salesforce.rules.fls.apex.operations.SchemaBasedValidationAnalyzer.checkForValidation(SchemaBasedValidationAnalyzer.java:74);com.salesforce.rules.fls.apex.operations.FlsValidationCentral.checkSchemaBasedFlsValidation(FlsValidationCentral.java:69);com.salesforce.rules.fls.apex.AbstractFlsVisitor.afterVisit(AbstractFlsVisitor.java:80);com.salesforce.rules.fls.apex.ReadFlsRuleVisitor.afterVisit(ReadFlsRuleVisitor.java:61)

"Urgency": How is this Business stopping?
I have to check security Review for App Exchange
To Reproduce
Steps to reproduce the behavior:
List lstcurrentUserPerSet = [SELECT Id, PermissionSet.Name,AssigneeId FROM PermissionSetAssignment WHERE AssigneeId = :Userinfo.getUserId() WITH SECURITY_ENFORCED];
Boolean userHasProjectUserpermission = false;
for ( PermissionSetAssignment psa : lstcurrentUserPerSet ) {
System.debug('##psa.PermissionSet.Name : ' + psa.PermissionSet.Name);
if ( psa.PermissionSet.Name.contains('Projects_User') ) {
userHasProjectUserpermission = true;
system.debug('user_has_projectUserpermission = '+userHasProjectUserpermission);
}
}

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: [iOS]
Scanner Version [v0.1.1]
Additional context
Add any other context about the problem here.

"Workaround": Have you found any ways to sidestep the problem?

@RiyazRanger RiyazRanger added the Business Stopping or Security Business Stopping or Security Bug label Sep 20, 2023
@johnbelosf johnbelosf removed the Business Stopping or Security Business Stopping or Security Bug label Sep 20, 2023
@johnbelosf
Copy link
Collaborator

Hi @RiyazRanger the team will get back to you on this. If you have already scanned your solution with Code Analyzer with scanner:run and have resolved any security issues or identified false positives, please feel free to proceed with the Security Review submission without using Graph Engine with scanner:run:dfa.

We are optimizing the Graph Engine experience specifically for Security Review, so we are conscious that partners might face some issues in the meantime.

@RiyazRanger
Copy link
Author

@johnbelosf thanks for your Information

@johnbelosf johnbelosf changed the title [Business Stopping or Security Bug]InternalExecutionError InternalExecutionError Sep 20, 2023
@johnbelosf johnbelosf changed the title InternalExecutionError [BUG] InternalExecutionError Feb 20, 2024
@johnbelosf johnbelosf added the BUG P3 Rarely Malfunction label Feb 20, 2024
Copy link

git2gus bot commented Feb 20, 2024

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

@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 P3 Rarely Malfunction 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