Redmine allows two files with the same file name to be uploaded to the same issue
|Target version:||1.0.0 (RC)|
If you upload two files with the same name to an issue ticket, it allows you to do so instead of enforcing uniqueness. However, it ends up creating one file on the filesystem and has two entries in the attachments table pointed to the one physical file on the filesystem. The one file on the file system gets written over so it actually ends up being the last duplicate file attached. So if you decide to delete one of the duplicate files via the interface, you end up with an orphaned link on the ticket.
#1 Updated by Derek McCallum almost 9 years ago
I want to also clarify that you have to try to upload two documents within the same batch to replicate this issue. If you upload one document and then come back later to "update" the ticket with the second document named the same, it works without causing an issue. It appears that documents uploaded within the same batch have the same leading identiying number in the disk_filename thus allowing the issue reported above.