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) {
File protectedContent = getAbsoluteFile(protectedStaticDir);
appContext.setResourceBase(protectedContent.getPath());
getLogger().info("Serving protected static from " +
protectedContent.getPath());
String protectedContent = getAbsoluteFile(protectedStaticDir).getPath();
appContext.setBaseResourceAsString(protectedContent);
getLogger().info("Serving protected static from " + protectedContent);
}
// Remap the context paths and start