Skip to content
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

[DDO-2308] Don't recursively parse query parameters #62

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

jack-r-warren
Copy link
Contributor

(Actually, just don't try to parse nested info structs from query parameters at all).

H/T to gin-gonic/gin#1733 for an absolute life-saver here. The struct tags like this will ignore even trying to bind nested structs out of query parameters so we won't hit that fun stack-overflow issue.

Granted I'm, uh, not super sure how on earth to test this. The stack overflow comes up in Gin, from binding in handlers, in a way that the current v2 test infra doesn't really let us check. We'd have to spin up a very full Sherlock server and hit it for tests and I think that's not worth it here.

@jack-r-warren jack-r-warren requested a review from a team as a code owner September 1, 2022 16:02
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jack-r-warren jack-r-warren merged commit 9f30ad1 into main Sep 1, 2022
@jack-r-warren jack-r-warren deleted the DDO-2308-no-recursive-form-parsing branch September 1, 2022 16:21
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