Project

General

Profile

Actions

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.

Status:
Resolved
Priority:
Normal
Category:
registry
Target version:
Start date:
06/21/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

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.


Related issues

Related to Metacat - Bug #6008: Metacat servlet API upload() method uses user-supplied filename for temp uploadClosedben leinfelder06/21/2013

Actions
Actions #1

Updated by ben leinfelder over 11 years ago

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).

Actions #2

Updated by ben leinfelder over 11 years ago

  • 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).

Actions

Also available in: Atom PDF