Commit 0c45bef8 authored by Michael Metternich's avatar Michael Metternich

HSTTWO-4238 absolute rootPath should be set to null if invalid

parent ed25eb5a
......@@ -157,7 +157,7 @@ public class HstManageContentTag extends TagSupport {
return null;
}
final String absoluteRootPath = getAbsoluteRootPath(requestContext);
String absoluteRootPath = getAbsoluteRootPath(requestContext);
try {
final Node rootPathNode = requestContext.getSession().getNode(absoluteRootPath);
......@@ -165,11 +165,13 @@ public class HstManageContentTag extends TagSupport {
log.error("Rootpath '{}' is not a folder node. Parameters rootPath and defaultPath are ignored.", rootPath);
rootPath = null;
defaultPath = null;
absoluteRootPath = null;
}
} catch (PathNotFoundException e) {
log.error("Rootpath '{}' does not exist. Parameters rootPath and defaultPath are ignored.", rootPath);
} catch (final PathNotFoundException e) {
log.error("Rootpath '{}' does not exist. Parameters rootPath and defaultPath are ignored.", rootPath, e);
rootPath = null;
defaultPath = null;
absoluteRootPath = null;
}
return absoluteRootPath;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment