Skip to content

[5.x] Revert detect recursion when augmenting Entries (#11854) #11894

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

JohnathonKoster
Copy link
Contributor

@JohnathonKoster JohnathonKoster commented Jun 24, 2025

This PR fixes #11892 by reverting the changes in #11854 and removes the need for #11888. I'll keep the original idea in the back of my head for a potential implementation in the future.

From investigation, the over-aggressive behavior is related to multi-site; specifically this line https://github.com/statamic/cms/blob/5.x/src/Data/HasOrigin.php#L58 will trigger the recursive detection. I have not been able to reproduce the aggressive behavior in simple sites, but have seen it in action on more complicated sites. Removing the exception throwing on that site also didn't end up in infinite recursion, which is very odd.

Current suggestion is to simply revert until I can track down where along the way things are getting messy, which may take some time. Also currently refraining from adding something to the log, as that has the potential to generate a ton of false positive log entries on large sites (would like to eventually track down the root cause, instead).

@JohnathonKoster JohnathonKoster changed the title [5.x] Detect recursion when augmenting Entries (#11854) [5.x] Revert detect recursion when augmenting Entries (#11854) Jun 24, 2025
@jasonvarga jasonvarga merged commit 224d1ef into statamic:5.x Jun 24, 2025
29 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.

Recursion error
2 participants