Skip to content

Better fix for reentrancy issue#7797

Open
labkey-adam wants to merge 3 commits into
developfrom
fb_mutate_the_mutation_check
Open

Better fix for reentrancy issue#7797
labkey-adam wants to merge 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

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.

1 participant