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

Ensure a redirect of the HttpServletResponse will close HttpOutput #12633

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

lachlan-roberts
Copy link
Contributor

In the GAE issue GoogleCloudPlatform/appengine-java-standard#321, a redirect is being done from a JSP file with non-empty content.

In Jetty 9.4 and EE8 we would close the HttpOutput during the call to sendRedirect, and so any further content that is tried to send should throw IOException.

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
@lachlan-roberts lachlan-roberts added the Sponsored This issue affects a user with a commercial support agreement label Dec 12, 2024
sbordet
sbordet previously approved these changes Dec 12, 2024
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
@lachlan-roberts
Copy link
Contributor Author

@gregw please re-review

@MuffinTheMan
Copy link

What are the chances this makes the next release? Also, @lachlan-roberts, how soon after release will this make it into App Engine?

@lachlan-roberts
Copy link
Contributor Author

@MuffinTheMan This will make it into the next release of 12.0.17, we try to release at the end of every month, so this will likely be late Dec or very early Jan.

After this is released I will update GAE to 12.0.17, but I do not know how long it will take Google to release GAE after that.

You could build Jetty and GAE yourself and deploy your application with this fix if you need it earlier.

@lachlan-roberts lachlan-roberts merged commit a7de14a into jetty-12.0.x Dec 19, 2024
10 checks passed
@lachlan-roberts lachlan-roberts deleted the jetty-12.0.x-CloseOutputAfterRedirect branch December 19, 2024 23:27
lachlan-roberts added a commit that referenced this pull request Dec 19, 2024
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sponsored This issue affects a user with a commercial support agreement
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants