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

Support HTTP errors 414 and 431 #2534

Closed

Conversation

yuzawa-san
Copy link
Contributor

414 is "uri too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414 431 is "header too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431 Old behavior was using 413 "request payload too large" which is specific to the content, not the first line or headers.

I added this upstream to Netty a while ago, netty/netty#12084
vert.x seems to have upgraded their implementation in a similar manner

414 is "uri too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414
431 is "header too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431
Old behavior was using 413 "request payload too large" which is specific to the content, not the first line or headers.
@pivotal-cla
Copy link

@yuzawa-san Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@yuzawa-san Thank you for signing the Contributor License Agreement!

@violetagg violetagg requested a review from a team October 7, 2022 11:56
@violetagg violetagg added the type/enhancement A general enhancement label Oct 7, 2022
@violetagg violetagg added this to the 1.0.24 milestone Oct 7, 2022
@violetagg
Copy link
Member

@reactor/team PTAL
Once this is approved I'll merge it manually to 1.0.x branch and then forward merge to main and netty5

Copy link
Member

@pderop pderop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@violetagg
Copy link
Member

@simonbasle @pderop Thanks for the review!

violetagg pushed a commit that referenced this pull request Oct 10, 2022
414 is "uri too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414
431 is "header too long" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431
Old behaviour was using 413 "request payload too large" which is specific to the content, not the first line or headers.
violetagg added a commit that referenced this pull request Oct 10, 2022
violetagg added a commit that referenced this pull request Oct 10, 2022
@violetagg
Copy link
Member

@yuzawa-san Thanks for the PR!
I applied the changes to 1.0.x branch (a29aa82) and then forward merged to main branch (981c5fd) and netty5 branch (a433a81)

@violetagg violetagg closed this Oct 10, 2022
NiccoMlt added a commit to NiccoMlt/carapaceproxy that referenced this pull request May 17, 2023
pv3nturi added a commit to diennea/carapaceproxy that referenced this pull request May 23, 2023
* Bump reactor-netty to 2022.0.7

* fix flaky tests

* test: fix MaxHeaderSizeTest

See reactor/reactor-netty#2534

* test: fix ConnectionPoolTest

 * now we should expect Bad Request with capital R
 * also, minor refactor in some tests while trying to reproduce failings

test: working on CacheContentLengthLimitTest

* ci: add Surefire JUnit report collection

apply some suggestions from #404

---------

Co-authored-by: paolo.venturi <paolo.venturi@diennea.com>
Co-authored-by: Niccolò Maltoni <niccolo.maltoni@diennea.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants