Skip to content

Better fix for reentrancy issue#7797

Merged
labkey-adam merged 3 commits into
developfrom
fb_mutate_the_mutation_check
Jun 29, 2026
Merged

Better fix for reentrancy issue#7797
labkey-adam merged 3 commits into
developfrom
fb_mutate_the_mutation_check

Conversation

@labkey-adam

@labkey-adam labkey-adam commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Rationale

We evaluate every query for mutating SQL, unless a specific deprecated feature flag is set. If not already cached, we need to query the feature flag property map. This can result in reentrancy and a stack overflow.

Previous fix eliminated most reentrancy cases, but detecting mutating SQL before checking the flag avoids checking the flag in the read case.

Also, designate SimpleAction as read-only, ConfirmAction as read-only when using GET, and make the action checks more readable.

Related Pull Requests

@labkey-adam labkey-adam merged commit 1e22ea4 into develop Jun 29, 2026
7 of 10 checks passed
@labkey-adam labkey-adam deleted the fb_mutate_the_mutation_check branch June 29, 2026 17:43
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