diff --git a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/security/PropertyUserStore.java b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/security/PropertyUserStore.java index d3122d01ed8..af48566f6cd 100644 --- a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/security/PropertyUserStore.java +++ b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/security/PropertyUserStore.java @@ -94,7 +94,7 @@ public class PropertyUserStore extends UserStore implements PathWatcher.Listener { if (!FileID.isArchive(uri)) { - _configPath = Path.of(uri); + _configPath = Path.of(config); } else { diff --git a/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletContextHandlerTest.java b/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletContextHandlerTest.java index ebd65717343..8428317f181 100644 --- a/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletContextHandlerTest.java +++ b/jetty-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/ServletContextHandlerTest.java @@ -15,6 +15,7 @@ package org.eclipse.jetty.ee10.servlet; import java.io.IOException; import java.io.PrintWriter; +import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; @@ -77,6 +78,7 @@ import org.eclipse.jetty.util.Callback; import org.eclipse.jetty.util.DecoratedObjectFactory; import org.eclipse.jetty.util.Decorator; import org.eclipse.jetty.util.component.AbstractLifeCycle; +import org.eclipse.jetty.util.resource.ResourceFactory; import org.hamcrest.Matchers; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; @@ -1863,6 +1865,7 @@ public class ServletContextHandlerTest ServletHandler shandler = servletContextHandler.getServletHandler(); ResourceHandler rh = new ResourceHandler(); + rh.setBaseResource(ResourceFactory.of(rh).newResource(Paths.get("."))); servletContextHandler.insertHandler(rh); assertEquals(shandler, servletContextHandler.getServletHandler()); diff --git a/jetty-ee9/jetty-ee9-security/src/main/java/org/eclipse/jetty/ee9/security/PropertyUserStore.java b/jetty-ee9/jetty-ee9-security/src/main/java/org/eclipse/jetty/ee9/security/PropertyUserStore.java index 1614609efd2..c9bb90fbe57 100644 --- a/jetty-ee9/jetty-ee9-security/src/main/java/org/eclipse/jetty/ee9/security/PropertyUserStore.java +++ b/jetty-ee9/jetty-ee9-security/src/main/java/org/eclipse/jetty/ee9/security/PropertyUserStore.java @@ -94,7 +94,7 @@ public class PropertyUserStore extends UserStore implements PathWatcher.Listener { if (!FileID.isArchive(uri)) { - _configPath = Path.of(uri); + _configPath = Path.of(config); } else {