Pre-existing dir should not break deployment
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1064932 13f79535-47bb-0310-9956-
ffa450edef68
if (!copy((InputStream) object, os))
return false;
} else if (object instanceof DirContext) {
- if (!currentFile.mkdir())
+ if (!currentFile.isDirectory() && !currentFile.mkdir())
return false;
if (!copyDir((DirContext) object, currentFile))
return false;
context attribute is set to "true". (schultz)
</fix>
<fix>
+ <bug>49978</bug>: Correct another instance where deployment incorrectly
+ failed if a directory in the work area already existed. (markt)
+ </fix>
+ <fix>
<bug>50582</bug>: Refactor access logging so chunked encoding is not
forced for all requests if bytes sent is logged. (markt)
</fix>