https://bz.apache.org/bugzilla/show_bug.cgi?id=63206

--- Comment #5 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to Andy Wilkinson from comment #3)
> > Tomcat shouldn't be creating directories unless explicitly directed to do 
> > so.
> 
> That seems a little arbitrary to apply that rule in this case.

I disagree.

> Tomcat already creates directories in several places. A few examples from a
> non-exhaustive search of the codebase:
> 
>  - JspCompilationContext will create the output directory if needed during
> JSP compilation [1]
>  - Tomcat will create the base directory during startup if needed [2]
>  - StandardContext will create its work directory if needed [3]

Those are all directories that Tomcat manages by itself. If the application,
via <multipart-config> or @MultipartConfig, sets an output directory, then
Tomcat should not be creating that on its own without a specific request to do
so.

I don't find the distinction arbitrary at all.

> As far as I know, and as far as I can tell from looking at the code, in each
> of these cases it's the default behaviour to create the directory. I also
> think it's of benefit to Tomcat's usability that it does so. I can't see why
> the location used for multipart uploads should be treated any differently.

Because it can be set by the application and is not configured and/or managed
by Tomcat.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to