Task #13223 (new)
Opened 8 years ago
Last modified 8 years ago
Bug: file attachments with same name overwritten — at Initial Version
Reported by: | khgillen | Owned by: | jburel |
---|---|---|---|
Priority: | minor | Milestone: | Unscheduled |
Component: | General | Version: | OMERO-5.2.2 |
Keywords: | n.a. | Cc: | ux@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Using Mac Insight 5.2.2 against Nightshade 5.2.2 release.
*preparation*
Have 2 files with the same name, in different folders.
Make an obvious change to the files.
Navigate via Projects
Click any image.
In r.h. panel click + for 'attachments'
Choose 'local document'
Pick the first file, and allow it to upload.
In the RH panel, in file attachments, click the button to the right of the uploaded file (1), and choose 'View'.
Expected: you should see the contents of file 1.
In r.h. panel click + for 'attachments'
Choose 'local document'
Pick the second file (same filename as file 1!), and allow it to upload.
Expected NO second file appears in the RH panel for 'Attachments'.
In the RH panel, in file attachments, click the button to the right of the uploaded file, and choose 'View'.
Expected: the contents of the existing file have now been replaced by the contents of the second file.
NOTE:
I feel this could be dangerous if users have a workflow which uses some intermediate tool in the chain which produces a file with name like results.csv. If a user were to attempt to upload results.csv on the wrong image, the original set of results would be overwritten.
Though this is, of course, a made-up workflow, and may not affect any actual users.