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
Fill out this template to submit your Code Analyzer issue.
Description:
Documentation:
Steps To Reproduce:
I'm running the sfdx scanner:run:dfa for this commit and I get the following in the sfge.log:
2024-05-09 15:40:44 ERROR ThreadableRuleExecutor:208 - Internal Error executing rule. submission=RuleRunnerSubmission{pathEntry=Method{properties={FirstChild=false, BeginLine=36, DefiningType_CaseSafe=adaptercontroller, LastChild=false, DefiningType=AdapterController, Constructor=false, EndLine=36, Name_CaseSafe=getusersettings, childIdx=4, ReturnType=UserSettingsDTO, Name=getUserSettings, Arity=1, ReturnType_CaseSafe=usersettingsdto, BeginColumn=35}}, rules=[com.salesforce.rules.AvoidDatabaseOperationInLoop@34a0683, com.salesforce.rules.AvoidMultipleMassSchemaLookups@78dc77d6, com.salesforce.rules.ApexFlsViolationRule@7a05ff78, com.salesforce.rules.PerformNullCheckOnSoqlVariables@1602f34e, com.salesforce.rules.UseWithSharingOnDatabaseOperation@452f9113, com.salesforce.rules.ApexNullPointerExceptionRule@5e563ca7]}
com.salesforce.exception.TodoException: Vertex passed in to detect schema-based validation is not a BooleanExpressionVertex, MethodCallExpressionVertex, InstanceOfExpressionVertex, LiteralExpressionVertex, or VariableExpressionVertex: parent=BooleanExpression{properties={FirstChild=true, Operator=&&, BeginLine=79, DefiningType_CaseSafe=usersettingsdto, LastChild=true, DefiningType=UserSettingsDTO, EndLine=79, childIdx=0, BeginColumn=13}}, vertex=CastExpression{properties={FirstChild=false, BeginLine=79, DefiningType_CaseSafe=usersettingsdto, LastChild=true, DefiningType=UserSettingsDTO, TypeRef=Boolean, EndLine=79, childIdx=1, BeginColumn=40}}
at com.salesforce.rules.fls.apex.operations.SchemaBasedValidationAnalyzer.checkForValidation(SchemaBasedValidationAnalyzer.java:52) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.fls.apex.operations.FlsValidationCentral.checkSchemaBasedFlsValidation(FlsValidationCentral.java:71) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.fls.apex.AbstractFlsVisitor.afterVisit(AbstractFlsVisitor.java:80) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.fls.apex.ReadFlsRuleVisitor.afterVisit(ReadFlsRuleVisitor.java:61) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.vertex.StandardConditionVertex$Positive.afterVisit(StandardConditionVertex.java:108) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:273) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:189) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:184) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:264) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:231) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:189) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:184) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:264) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:231) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:231) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:189) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:184) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:264) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:231) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:231) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:189) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.visit(ApexPathWalker.java:184) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.walk(ApexPathWalker.java:172) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.walkPath(ApexPathWalker.java:124) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.walkPath(ApexPathWalker.java:105) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.graph.visitor.ApexPathWalker.walkPath(ApexPathWalker.java:88) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.ApexFlsReadRuleHandler.detectViolations(ApexFlsReadRuleHandler.java:37) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.ApexFlsViolationRule.lambda$_run$0(ApexFlsViolationRule.java:91) ~[sfge-1.0.1-pilot.jar:?]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.1-jre.jar:?]
at com.salesforce.rules.ApexFlsViolationRule._run(ApexFlsViolationRule.java:88) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.AbstractPathTraversalRule.run(AbstractPathTraversalRule.java:15) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.PathBasedRuleRunner.executeRulesOnPaths(PathBasedRuleRunner.java:144) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.PathBasedRuleRunner.runRules(PathBasedRuleRunner.java:81) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.runRules(ThreadableRuleExecutor.java:230) ~[sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:167) [sfge-1.0.1-pilot.jar:?]
at com.salesforce.rules.ThreadableRuleExecutor$CallableExecutor.call(ThreadableRuleExecutor.java:127) [sfge-1.0.1-pilot.jar:?]
at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408) [?:?]
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736) [?:?]
at java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1456) [?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) [?:?]
2024-05-09 15:40:44 INFO ThreadableRuleExecutor:216 - Finished. method=AdapterController:getUserSettings:36
Expected Behavior:
Give a meaningful error in the output. Screenshots:
scanner run dfa
Issue TemplateFill out this template to submit your Code Analyzer issue.
Description:
Documentation:
Steps To Reproduce:
I'm running the
sfdx scanner:run:dfa
for this commit and I get the following in the sfge.log:Expected Behavior:
Give a meaningful error in the output.
Screenshots:
Desktop:
Additional Context:
Workaround:
N/A
Urgency:
It is for a 2GP managed package.
The text was updated successfully, but these errors were encountered: