-
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] InternalExecutionError when evaluating newSObject()
statement in DFA scan
#1175
Comments
This error trace is from the logs:
|
@vc4u , thanks for bringing this to our attention. We'll look into it, see if we can find you a workaround, and let you know if we need any more information from you. We appreciate your patience. |
This issue has been linked to a new work item: W-14106405 |
@jfeingold35 Did you found any workaround to this issue? |
@vc4u , unfortunately, I haven't had much time to look into this one. I'll do my best to find time for this one and keep you posted. |
@vc4u , if you use the 0-parameter version of
do:
Please try this workaround and let me know if it works. |
I thought we can't assign |
@jfeingold35 Thanks Josh! This change resolved the Violation reporting on that line. |
newSObject()
statement in DFA scannewSObject()
statement in DFA scan
Marking this as a duplicate of #1497 |
Describe the bug
Dynamically instantiating an sObject instance in code is causing an error.
Line 253:
sObject sObj = objType.newSobject((Id)(recordId));
Error message received in generated report output:
To Reproduce
Ran a DFA scan on single class instance:
sf scanner run dfa -f html -o CodeAnalyzerDFA.html -t ./force-app/main/default/classes/NDConnectController.cls -p ./force-app/main/default/classes --rule-thread-count=12 --sfgejvmargs="-Xmx50g" --category="Security"
Expected behavior
The scan should be able to parse through the line and accurately report the violation if it is found.
Desktop (please complete the following information):
Additional context
Log file attached.
"Workaround":
None
"Urgency":
Business stopping as we're gearing towards security review submission.
sfge.log
The text was updated successfully, but these errors were encountered: