Skip to content
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

Issue #11494 - PathMappingsHandler exposes PathSpec and Context based on PathSpec. #11497

Open
wants to merge 4 commits into
base: jetty-12.0.x
Choose a base branch
from

Merge remote-tracking branch 'origin/jetty-12.0.x' into fix/12.0.x/pa…

4c512a5
Select commit
Loading
Failed to load commit list.
Open

Issue #11494 - PathMappingsHandler exposes PathSpec and Context based on PathSpec. #11497

Merge remote-tracking branch 'origin/jetty-12.0.x' into fix/12.0.x/pa…
4c512a5
Select commit
Loading
Failed to load commit list.
Webtide Jenkins / Tests / Parallel Stage / Build / Test - JDK21 failed Jun 30, 2024 in 0s

org.eclipse.jetty.server.handler.TryPathsHandlerTest.testTryPathsWithPathMappings(WorkDir) failed

Send us feedback

Details

org.eclipse.jetty.server.handler.TryPathsHandlerTest.testTryPathsWithPathMappings(WorkDir)

expected: <204> but was: <500>
Stack trace
org.opentest4j.AssertionFailedError: expected: <204> but was: <500>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:531)
	at [email protected]/org.eclipse.jetty.server.handler.TryPathsHandlerTest.testTryPathsWithPathMappings(TryPathsHandlerTest.java:221)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1351)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:422)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:651)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Standard error
Running org.eclipse.jetty.server.handler.TryPathsHandlerTest.testTryPathsWithPathMappings(WorkDir)
2024-06-30 19:30:50.324:INFO :oejs.Server:ForkJoinPool-1-worker-1: jetty-12.0.11-SNAPSHOT; built: 2024-06-28T02:52:15.194Z; git: 05beb755b7830bc8531156c11893fa8bcfd65630; jvm 21.0.3+9-LTS
2024-06-30 19:30:50.325:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-1: Started oejsh.ContextHandler@7506577b{/ctx,/ctx,b=file:///home/jenkins/agent/workspace/jetty.project_PR-11497/jetty-core/jetty-server/target/tests/oejsh.TryPathsHandlerTest/testTryPathsWithPathMappings/,a=AVAILABLE,h=oejsh.TryPathsHandler@70a5ab06{STARTED}}
2024-06-30 19:30:50.325:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-1: Started ServerConnector@145831cf{HTTP/1.1, (http/1.1)}{0.0.0.0:39491}
2024-06-30 19:30:50.470:INFO :oejus.SslContextFactory:ForkJoinPool-1-worker-1: x509=X509@2bcc1fad(mykey,h=[localhost],a=[/127.0.0.1, /0:0:0:0:0:0:0:1],w=[]) for Server@766c6c49[provider=null,keyStore=file:///home/jenkins/agent/workspace/jetty.project_PR-11497/jetty-core/jetty-server/src/test/resources/keystore.p12,trustStore=null]
2024-06-30 19:30:50.521:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-1: Started ServerConnector@23efed02{SSL, (ssl, http/1.1)}{0.0.0.0:46093}
2024-06-30 19:30:50.521:INFO :oejs.Server:ForkJoinPool-1-worker-1: Started oejs.Server@f075760{STARTING}[12.0.11-SNAPSHOT,sto=0] @88833ms
2024-06-30 19:30:50.522:WARN :oejs.Response:qtp1528687576-14541: writeError: status=500, message=java.lang.NullPointerException: Cannot invoke "String.endsWith(String)" because "pathInContext" is null, response=org.eclipse.jetty.server.handler.ContextResponse@3a3f51ee
java.lang.NullPointerException: Cannot invoke "String.endsWith(String)" because "pathInContext" is null
	at [email protected]/org.eclipse.jetty.server.ResourceService.doGet(ResourceService.java:156)
	at [email protected]/org.eclipse.jetty.server.handler.ResourceHandler.handle(ResourceHandler.java:173)
	at [email protected]/org.eclipse.jetty.server.handler.PathMappingsHandler.handle(PathMappingsHandler.java:121)
	at [email protected]/org.eclipse.jetty.server.Handler$Wrapper.handle(Handler.java:740)
	at [email protected]/org.eclipse.jetty.server.handler.TryPathsHandler.handle(TryPathsHandler.java:158)
	at [email protected]/org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:858)
	at [email protected]/org.eclipse.jetty.server.Server.handle(Server.java:181)
	at [email protected]/org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:648)
	at [email protected]/org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:403)
	at [email protected]/org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
	at [email protected]/org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
	at [email protected]/org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
	at [email protected]/org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
	at [email protected]/org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
	at [email protected]/org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
	at java.base/java.lang.Thread.run(Thread.java:1583)
2024-06-30 19:30:50.524:INFO :oejs.Server:ForkJoinPool-1-worker-1: Stopped oejs.Server@f075760{STOPPING}[12.0.11-SNAPSHOT,sto=0]
2024-06-30 19:30:50.525:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-1: Stopped ServerConnector@145831cf{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2024-06-30 19:30:50.525:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-1: Stopped ServerConnector@23efed02{SSL, (ssl, http/1.1)}{0.0.0.0:0}