Scott Wilson created WOOKIE-402:
-----------------------------------

             Summary: Package files are overwritten by updates
                 Key: WOOKIE-402
                 URL: https://issues.apache.org/jira/browse/WOOKIE-402
             Project: Wookie
          Issue Type: Bug
            Reporter: Scott Wilson
             Fix For: 0.14.0


Suppose you have two widgets:

Widget A: archive.wgt
Widget B: archive.wgt

If you install Widget A, then install Widget B, then request the package for 
Widget A, you will instead get the Widget B archive.wgt file. This is because 
files are overwritten on updates; this makes sense when updating an existing 
widget, but falls down where widgets have the same filename on upload.

Two possible solutions:

1. Enforce unique filenames, e.g. by changing the filename to a hash of the 
widget identifier.
2. Selectively enforce unique filenames by detecting duplicates and prefixing 
the file name with an UID.

NOTE this is the cause of WOOKIE-382

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to