Summary: | javax.servlet.http.Part.write(String fileName) is not properly implemented | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Daniel Koh <howeverking> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | trunk | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Daniel Koh
2013-05-15 02:16:03 UTC
For the problem 2, the default location of MultipartConfig is avax.servlet.context.tempdir as defined by 8.1.5 @MultipartConfig. (In reply to comment #0) > 1. fileName parameter / relative vs absolute Tomcat is implementing a container specific extension that allows absolute paths to be specified. I thought that there had been some discussion of this previously but I can't find anything in the archives. Any specification compliant input (i.e. a relative path) will work so nothing is broken w.r.t. to the spec here. (In reply to comment #2) > For the problem 2, the default location of MultipartConfig is > avax.servlet.context.tempdir as defined by 8.1.5 > @MultipartConfig. Agreed. Tomcat applies that default elsewhere but it is missing in this case. Tomcat also handles relative locations by making them relative to javax.servlet.context.tempdir I'll see about getting this fixed. This has been fixed in trunk and 7.0.x and will be included in 7.0.41 onwards. |