struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jagub zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3802) FileUploadInterceptor makes CGI Parameter temporary files
Date Fri, 11 May 2012 05:00:45 GMT

    [ https://issues.apache.org/jira/browse/WW-3802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273042#comment-13273042
] 

jagub zhang commented on WW-3802:
---------------------------------

I always use JakartaMultiPartRequest,
and CGI parameter tmp files were deleted successful.

In fact, JakartaMultiPartRequest save the every field to file.
(
at struts2-core 2.3.1.2 JakartaMultiPartRequest.java, line 157 -> fac.setSizeThreshold(0);
)

commons-upload library will delete tmp file -> DiskFileItem#finalize will delete the tmp
file.

                
> FileUploadInterceptor makes CGI Parameter temporary files
> ---------------------------------------------------------
>
>                 Key: WW-3802
>                 URL: https://issues.apache.org/jira/browse/WW-3802
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.1.2
>         Environment: JDK 1.6.0_31, Tomcat 7.0.25
>            Reporter: macha64
>            Priority: Minor
>             Fix For: 2.3.5
>
>
> I uploaded file with cgi parameters.
> CGI parameter became a temporary file,
> and those files were not removed.
> FileUploadInterceptor makes not only upload file
> but also CGI Parameter temporary files.
> CGI Parameter temporary files are not removed.
> for example ...
> <form action="..." method="post" enctype="multipart/form-data">
>   <input type="file" name="uploadFile" />
>   <input type="text" name="data1" value="FOO"/>
>   <input type="text" name="data2" value="BAR"/>
> </form>
> remained tmp files.
> [upload_47c7ddf7_136bf8a8b3b__8000_00000002.tmp]
> FOO
> [upload_47c7ddf7_136bf8a8b3b__8000_00000003.tmp]
> BAR

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message