[
http://www.stripesframework.org/jira/browse/STS-827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter resolved STS-827.
----------------------------
Resolution: Fixed
Fix Version/s: Release 1.5.7
Assignee: Ben Gunter
Thank you. Fixed for 1.5.7.
> 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
> Assignee: Ben Gunter
> Fix For: Release 1.5.7
>
>
> 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
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development