-
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
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
Comments
The include attributes are fine - there, |
joakime
added
the
Specification
For all industry Specifications (IETF / Servlet / etc)
label
Jan 3, 2023
I have a test case that confirms report. |
joakime
added a commit
that referenced
this issue
Jan 3, 2023
* Fixes #9119 - uses proper context path that satisfies the root context rules of the servlet spec Signed-off-by: Joakim Erdfelt <[email protected]>
Opened PR #9123 to address this |
joakime
added a commit
that referenced
this issue
Jan 20, 2023
…root context (#9123) * Wrong value of RequestDispatcher.FORWARD_CONTEXT_PATH on root context * Fixes #9119 - uses proper context path that satisfies the root context rules of the servlet spec Signed-off-by: Joakim Erdfelt <[email protected]>
grgrzybek
added a commit
to ops4j/org.ops4j.pax.web
that referenced
this issue
Mar 23, 2023
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)
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: