COS multipart implementation may corrupt two files with same name uploaded
simultaneously
-----------------------------------------------------------------------------------------
Key: STS-827
URL: http://www.stripesframework.org/jira/browse/STS-827
Project: Stripes
Issue Type: Bug
Components: ActionBean Dispatching
Affects Versions: Release 1.5.6
Environment: Client - Windows 7, FF 3.6
Server - RHEL 5.3
Reporter: Justin Falk
In net.sourceforge.stripes.controller.multipart.CosMultipartWrapper.build()
when the COS MultipartRequest is created no FileRenamePolicy is specified. By
default, it seems COS isn't very smart about how it names the temp files it
creates - it simply uses the filename. As a result, two requests uploading
files of the same name will attempt to write to the same file. This leads to
corruption of the uploaded file. In my case, one of the uploads seemed fine
while the other was overwritten with bytes for the other request.
The Apache implementation seems to handle this properly by generating a
filename for the temp file during each upload.
I believe, the solution would be to specify a FileRenamePolicy in the
MultipartRequest constructor.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development