Skip to content

FIX @W-19261289@ SFGE treats LimitReached errors as internal errors - #325

Merged
jfeingold35 merged 1 commit into
devfrom
d/W-19261289
Aug 12, 2025
Merged

FIX @W-19261289@ SFGE treats LimitReached errors as internal errors#325
jfeingold35 merged 1 commit into
devfrom
d/W-19261289

Conversation

@jfeingold35

Copy link
Copy Markdown
Contributor

This is a fix for Code Analyzer issue 1868, in which triggering a LimitReached exception within Graph Engine tanks the entire code analysis because it is returned as a violation for the non-existent LimitReached pseudo-rule.
The fix is to change the pseudo-rule name to InternalExecutionError so that the pseudo-violation is handled with the same mechanism that handles timeouts and internal errors.
NOTE: Despite my best efforts, I was unable to write code that would trigger a LimitReached error, and was therefore unable to add an automated test. The best I could do was to change line 97 of PathExpansionRegistry.java from if (currentSize >= pathExpansionLimit) { to if (currentSize >= 0) {, thereby forcing a LimitReached exception to fire for every single scan, and manually verify that the exception was logged as an error instead of returned as a violation.

@jfeingold35
jfeingold35 merged commit e211dc4 into dev Aug 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants