-
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
NPE when forwarding a request to default servlet which should redirect to a subdirectory with trailing slash #10558
Labels
Bug
For general bugs on Jetty side
Comments
@grgrzybek yep, this is an issue. PR is on the way. |
janbartel
added a commit
that referenced
this issue
Sep 21, 2023
See PR #10560 |
Thank you for quick response! |
janbartel
added a commit
that referenced
this issue
Sep 23, 2023
Fixed via #10560 |
Thanks - I checked in Pax Web and everything works perfectly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty version(s)
12.0.1
Java version/vendor
(use: java -version)
OS type/version
Description
When forwarding a request to default servlet using a directory without trailing slash and with welcome files configured, instead of getting redirect to such directory with trailing slash (so welcome file resolution happens after redirect), I'm getting NPE:
The problem is that I have an instance of
org.eclipse.jetty.ee10.servlet.Dispatcher$ForwardRequest
like this:and
org.eclipse.jetty.server.Request#getServerPort()
uses:and this
ServletCoreRequest@3063
has this_uri
:How to reproduce?
I've prepared a unit test using current
jetty-12.0.x
branch here: grgrzybek@066c2caThis is part of my continued work after #9910 has been explained.
The text was updated successfully, but these errors were encountered: