Opened 8 years ago

Closed 8 years ago

#631 closed defect (duplicate)

When name of upload conflicts with existing media, mg uses the id number, but does not check whether an exisiting item is named that.

Reported by: Simon Fondrie-Teitler Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

e.g. I name the fifth picture I upload 7. I then upload another picture and name it "leaf". I then upload another picture, also named "leaf". The url for the first picture and the last picture will be https://mg.tenthcircle.net/u/simonft/m/10/

This also happens if a I upload a picture with a name conflict, then another picture with the name being the id number of the conflicting picture. i.e. I upload a picture named "leaf", then another picture name "leaf". The second picture gets the url https://mg.tenthcircle.net/u/simonft/m/17/. I then upload a picture with the name "17", which gets the same url.

Subtickets

Change History (2)

comment:1 Changed 8 years ago by Emily O'Leary

Tested with Git Master (fc6616e) on February 11th, 2013. It no longer uses the ID but takes the non-unique name and appends an identifier to the end (looks sort of like a Hash?).

EX:
Create two items named Taiga. One gets named "taiga-525e". I tried creating an "taiga-525e" again and that creates "taiga-525e-1588"

comment:2 Changed 8 years ago by Simon Fondrie-Teitler

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.