Wrong value of javax.servlet.forward.context_path attribute #9119
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Milestone
Jetty version(s)
10.0.13
Java version/vendor
(use: java -version)
11.0.7
OS type/version
Linux/Fedora 37
Description
I work on Pax Web project and it unifies 3 embedded web servers (Jetty, Tomcat and Undertow) in OSGi runtime.
I try hard to make the tests consistent and ensure similar behavior between the runtimes.
According to Chapter 9.4.2 Forwarded Request Parameters of the Servlets 4 specification:
When using Jetty 9.4.50, I see correct (in org.eclipse.jetty.server.Dispatcher#forward()):
However in Jetty 10, it's:
And the forwarded context path is
"/"
instead of""
(empty string).How to reproduce?
I have a
"/gateway/*"
mapped servlet with:And I call it with this URI:
The test is https://github.com/ops4j/org.ops4j.pax.web/blob/web-9.0.4/pax-web-jetty/src/test/java/org/ops4j/pax/web/service/jetty/internal/UnifiedJettyTest.java#L505-L516
The text was updated successfully, but these errors were encountered: