-
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
Cleanup of TypeUtil and ContextHandler stop/start #8998
Conversation
+ TypeUtil class shortname used more often and includes trailing digits + Fixed direct stopping/starting of a nested ContextHandler + Fixed null path handling in nested context + more tests for all of the above
Fixed nested doStart and doStop
@joakime @lachlan-roberts the CI failure is a java-19 flake. Can you please review rather than wait for a green build. |
Fixed DistributionTests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me
jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/ContextHandler.java
Show resolved
Hide resolved
@@ -490,7 +490,7 @@ public void testBaseResourceAbsolutePath() throws Exception | |||
// On Unix / Linux this should have no issue. | |||
// On Windows with fully qualified paths such as "E:\mybase\webapps\dump.war" the | |||
// resolution of the Resource can trigger various URI issues with the "E:" portion of the provided String. | |||
context.setResourceBase(warPath.toString()); | |||
context.setBaseResourceAsString(warPath.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI again, I think this is also part of 2 other PRs.
@@ -141,6 +141,44 @@ public void testSimpleGET() throws Exception | |||
assertThat(BufferUtil.toString(stream.getResponseContent()), equalTo(helloHandler.getMessage())); | |||
} | |||
|
|||
@Test | |||
public void testNullPath() throws Exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why we need processMovedPermanently
and processByContextHandler
both in ContextHandler
one sends a 301 and other sends 302 response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we do. I've removed processByContextHandler in #8978
Hopefully non controversial changes from monster PR: