-
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
Jetty12: HttpConfiguration#_relativeRedirectAllowed flipped to true per default #11947
Comments
@gregw do you remember why you flipped this to true in only the embedded mode and not in the XML or ini ? |
This also caused test failures during an attempt to migrate CloudBees CI (based on Jenkins) to Jetty 12. The new behavior seems fine and the fix was straightforward, but it seems worth highlighting as a significant change; https://github.com/jetty/jetty.project/releases/tag/jetty-12.0.5 notes only
which would not have caught my eye. I found this via |
Fix #11947 by aligning embedded and XML HttpConfiguration defaults
Fix #11947 by aligning embedded and XML HttpConfiguration defaults Revert most changes
Fix #11947 by aligning embedded and XML HttpConfiguration defaults Fixed SIWE
Fix #11947 by aligning embedded and XML HttpConfiguration defaults
Jetty Version
jetty-12
Jetty Environment
ee10
Java Version
Java 21
Question
During migration from Jetty 11 to Jetty 12 (ee10) we started to see some test failures.
Particularly, the
Location
header wasn't set to absolute URL after the redirect.Particularly, the if statement wasn't
true
any more after migration to Jetty 12:jetty-server/src/main/java/org/eclipse/jetty/server/Response.java
We've investigated the reason for this test failure and concluded, that there was an undocumented behavioural change in Jetty 12 in
HttpConfiguration
class in context of this issue #11014 and PR #11019.To fix the behaviour in our case we have to unflip this option, by setting (see [1] for the whole change):
Question 1:
Can this behavioural change be better documented?
Question 2:
Why the default
jetty.xml
still hasdefault="false"
?jetty-server/src/main/config/etc/jetty.xml
[1] https://gerrit-review.googlesource.com/c/gerrit/+/424580
The text was updated successfully, but these errors were encountered: