https://bz.apache.org/bugzilla/show_bug.cgi?id=63206
Bug ID: 63206
Summary: Try to create parent directories before writing an
uploaded file to disk
Product: Tomcat 8
Version: 8.5.38
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
When processing a multi-part upload and parsing the parts, a check is made that
the output location is a directory. If it is not, an exception is thrown. By
contrast, Jetty will try to create the directory [1] before writing the
uploaded file into it.
I wonder if Tomcat could be modified to behave in the same way as Jetty? In
addition to helping the user out when they have configured the output location
before have forgotten to create it, it will also help in situations where files
are being uploaded to a location within /tmp or similar and it has been deleted
by tmpwatch due to a period of inactivity.
[1]
https://github.com/eclipse/jetty.project/blob/34b2678e6d2b164088dcec0ef9e66f1148a8a527/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartFormInputStream.java#L522-L523
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]