[
http://jira.jboss.com/jira/browse/JBSEAM-965?page=all ]
Leo Baschy updated JBSEAM-965:
------------------------------
Attachment: MultipartRequest.java.patch
In attached patch InputStream in close() method deletes the file.
Better than previous situation.
Only works if application programmer uses getInputStream(), in which case one can expect
him to be aware of the nature of a temporary file. Can only read from a stream before you
close it anyway.
Could be implemented for getData() as well, but haven't put it in there yet in case
one argues that getData() should be possible to call more than once.
fileUpload component should delete temporary files
--------------------------------------------------
Key: JBSEAM-965
URL:
http://jira.jboss.com/jira/browse/JBSEAM-965
Project: JBoss Seam
Issue Type: Patch
Components: JSF
Affects Versions: 1.2.0.GA
Environment: Windows XP, Java 1.5
Reporter: Leo Baschy
Attachments: MultipartRequest.java.patch
If configured to write to temporary files then Seam fileUpload component marks them for
delete on exit from JVM. Until then they accumulate (in the usual temporary directory),
for each upload, as long as the server is running. The application developer only has the
InputStream, which doesn't allow file deletion. The application developer can call
close() for the InputStream, but that doesn't delete the file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira