-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
HTTP Fields with OWS (Optional WhiteSpace) in value are not properly parsed in Jetty 12 #11659
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Comments
joakime
added
the
Specification
For all industry Specifications (IETF / Servlet / etc)
label
Apr 17, 2024
Looks like we are not ignore OWS before the |
joakime
added a commit
that referenced
this issue
Apr 17, 2024
joakime
changed the title
Jetty 12 HttpParser fails to parse a response with more than one space before the Content-Length header value
Content-Length with OWS (Optional Whitespace) is not properly parsed in Jetty 12
Apr 17, 2024
joakime
changed the title
Content-Length with OWS (Optional Whitespace) is not properly parsed in Jetty 12
Content-Length with OWS (Optional WhiteSpace) is not properly parsed in Jetty 12
Apr 17, 2024
PR #11661 opened |
joakime
added a commit
that referenced
this issue
Apr 18, 2024
joakime
added a commit
that referenced
this issue
Apr 19, 2024
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in Jetty 12.0.9 - FROZEN
Apr 19, 2024
joakime
changed the title
Content-Length with OWS (Optional WhiteSpace) is not properly parsed in Jetty 12
HTTP Fields with OWS (Optional WhiteSpace) in value are not properly parsed in Jetty 12
Apr 19, 2024
gregw
added a commit
that referenced
this issue
May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Jetty version(s)
12.0.7
Jetty Environment
ee10
Java version/vendor
(use: java -version)
C:\tools\jdk21\bin>java -version
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (build 21.0.2+13-LTS, mixed mode, sharing)
OS type/version
Windows 10 Enterprise Version 22H2
Description
Jetty 12's HttpParser throws an exception when parsing an HTTP response that contains multiple spaces before the Content-Length header value. This does not happen with Jetty 11, and the extra space is not in violation of the spec. The exception is:
How to reproduce?
The following JUnit tests reproduce/illustrate the problem:
The text was updated successfully, but these errors were encountered: