Fix creation of protected context

This commit is contained in:
Tobi Schäfer 2024-05-25 15:24:28 +02:00
parent 304ea4e456
commit fa59a27858
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8

View file

@ -536,10 +536,9 @@ public class ApplicationManager implements XmlRpcHandler {
} }
if (protectedStaticDir != null) { if (protectedStaticDir != null) {
File protectedContent = getAbsoluteFile(protectedStaticDir); String protectedContent = getAbsoluteFile(protectedStaticDir).getPath();
appContext.setResourceBase(protectedContent.getPath()); appContext.setBaseResourceAsString(protectedContent);
getLogger().info("Serving protected static from " + getLogger().info("Serving protected static from " + protectedContent);
protectedContent.getPath());
} }
// Remap the context paths and start // Remap the context paths and start