-
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
Fix #11325 Content-Length checks #12622
Conversation
Fix #11325 by: + removing content-length tracking from ServletContextResponse + adding a setContentLengthSet field to HttpOutput
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments made for ee10, but same comments apply to ee11.
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/HttpOutput.java
Outdated
Show resolved
Hide resolved
...ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletApiResponse.java
Outdated
Show resolved
Hide resolved
.../jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletContextResponse.java
Outdated
Show resolved
Hide resolved
Fix #11325 by: + removing content-length tracking from ServletContextResponse + adding a setContentLengthSet field to HttpOutput
Fixed flaky tests due to thread local context left set.
@@ -1053,6 +1056,7 @@ public boolean handle(Request request, Response response, Callback callback) thr | |||
return true; | |||
|
|||
// Past this point we are calling the downstream handler in scope. | |||
Context lastContext = getCurrentContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbordet this is an unrelated change that was causing flaky tests as it was leaving the ThreadLocal context set on the main test thread!
Fix #11325 by: + removing content-length tracking from ServletContextResponse + adding a setContentLengthSet field to HttpOutput + added HttpOutputTest for EE10/EE11
Fix #11325 by: