Check that a file is not specified for a Host's appBase and log an error if it is.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1125492 13f79535-47bb-0310-9956-
ffa450edef68
if (host.getCreateDirs()) {
File[] dirs = new File[] {appBase(),configBase()};
for (int i=0; i<dirs.length; i++) {
- if ( (!dirs[i].exists()) && (!dirs[i].mkdirs())) {
+ if ( (!dirs[i].isDirectory()) && (!dirs[i].mkdirs())) {
log.error(sm.getString("hostConfig.createDirs",dirs[i]));
}
}
<subsection name="Catalina">
<changelog>
<fix>
+ <bug>35054</bug>: Check that a file is not specified for a Host's
+ appBase and log an error if it is. (markt)
+ </fix>
+ <fix>
<bug>51197</bug>: Fix possible dropped connection when sendError or
sendRedirst are used during async processing. (markt)
</fix>