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

Register a binder for parts that returns unsatisfied #8004

Merged
merged 2 commits into from
Sep 19, 2022
Merged

Conversation

jameskleeh
Copy link
Contributor

Fixes #7939

This prevents @part annotated arguments from reading query values, the body, etc if they are not sent. The only way I can test the original scenario is by uploading a file to disk that would cause an OOM when read. I don't know if CI can support that much space. Let me know if you want me to create the test.

@sonarqubecloud
Copy link

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sdelamo
Copy link
Contributor

sdelamo commented Sep 15, 2022

Fixes #7939

This prevents @part annotated arguments from reading query values, the body, etc if they are not sent. The only way I can test the original scenario is by uploading a file to disk that would cause an OOM when read. I don't know if CI can support that much space. Let me know if you want me to create the test.

Please, add the test. We can annotate with @IgnoreIf if we cannot run it in CI.

@sdelamo sdelamo requested a review from yawkat September 15, 2022 07:59
@yawkat
Copy link
Member

yawkat commented Sep 15, 2022

i think this change should not go into a patch release

@sdelamo sdelamo changed the base branch from 3.6.x to 3.7.x September 15, 2022 11:24
@graemerocher graemerocher added this to the 3.7.0 milestone Sep 16, 2022
@sdelamo sdelamo merged commit e0f67a4 into 3.7.x Sep 19, 2022
@sdelamo sdelamo deleted the issue-7939 branch September 19, 2022 05:07
@sdelamo
Copy link
Contributor

sdelamo commented Sep 19, 2022

@jameskleeh can you submit a test in a separate PR?

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.

OutOfMemory during huge file upload, when one of the nullable form data fields is empty
4 participants