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
HttpServerUpgradeHandler causing StringIndexOutOfBoundsException #11568
Comments
Work around can be fond in #11267 |
@dpy1123 Yeah, a missing |
This was referenced Aug 11, 2021
laosijikaichele
pushed a commit
to laosijikaichele/netty
that referenced
this issue
Dec 16, 2021
…etty#11569) __Motivation__ Since request.headers().getAll() will never return null. And the check null condition will not work as expected. __Modification__ Add isEmpty() checking as well. __Result__ Fixes netty#11568
laosijikaichele
pushed a commit
to laosijikaichele/netty
that referenced
this issue
Dec 16, 2021
…etty#11569) __Motivation__ Since request.headers().getAll() will never return null. And the check null condition will not work as expected. __Modification__ Add isEmpty() checking as well. __Result__ Fixes netty#11568
raidyue
pushed a commit
to raidyue/netty
that referenced
this issue
Jul 8, 2022
…etty#11569) __Motivation__ Since request.headers().getAll() will never return null. And the check null condition will not work as expected. __Modification__ Add isEmpty() checking as well. __Result__ Fixes netty#11568
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are using netty as a proxy server. And added HttpServerUpgradeHandler incase client wants to talk in h2c.
But with a normal http1 request, we see the following exceptions.
As far as I can see, it seems like the if conditon should also add isEmpty().
netty/codec-http/src/main/java/io/netty/handler/codec/http/HttpServerUpgradeHandler.java
Line 326 in 3f8dab5
The text was updated successfully, but these errors were encountered: