-
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
Jetty 11 returns "/" as context path when deployed in ROOT context. It should return an empty string. #6028
Comments
Seems that we have test cases for the |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
PR #6030 opened with testcase for Jetty 10 (it works there, but the OP says so anyway) |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Opened PR #6032 for Jetty 11 with testcase. |
I can't replicate this with jetty-11. Are you sure the request is not being wrapped? |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
I think there might be a difference |
You can test this with the Setup ...
Then open |
…xtpath Issue #6028 - Request.getContextPath() for root context should be empty string (Jetty 10)
This issue has been automatically marked as stale because it has been a |
Jetty version: 11.0.1
Java version: OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OS type/version: Ubuntu Budgie 20.04.1
Description
When a WAR-File is deployed in ROOT Context Path of Jetty 11 the method
getContextPath()
returns the String/
(slash).It should return an empty String since context path's shouldn't end with a
/
Jetty Versions <10 return an empty string as expected.
It seems this has also been a problem in Jetty 9, but has been fixed there: see #5057
The text was updated successfully, but these errors were encountered: