Bug #6007
closed
Registry uses filename from upload form to save in temporary directory
Added by ben leinfelder over 11 years ago.
Updated over 11 years ago.
Description
This can cause collisions when a room of 22 people all submit a datapackage with the same data file name....
The registry should ensure that filenames it uses to write in a shared directory are unique.
I deployed the changes on dev2.nceas for testing. Feel pretty good about them - using File::Temp to manager unique uploads on the server.
One thing to note: you will see this mangled upload name in the submission review stage, but when you finalize the registration the original filename will be restored and used in the EML metadata as well as the xml_documents table (used for file downloads).
- Status changed from New to Resolved
- Target version set to 2.1.0
I deployed this in KNB today (June 25th, 2013). This was not part of an official release but is in the code for 2.1.x or 2.0.8 (if that is ever needed).
Also available in: Atom
PDF