adding 2 files with the same name to the same issue

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mcmo
Posts: 11
Joined: Oct 18, 2016 2:04 am

adding 2 files with the same name to the same issue

Post by mcmo » Aug 17, 2017 3:13 am

Hi

Why can't we add 2 files with the same name to the same issue? The database table for the files (mantis_bug_file_table) has an ID which seems to be unique. Hence I think that forbidding to have 2 files with the same name makes no sense.
I have quickly checked the code of MantisBT 2.1, but I don't where having 2 files in the same ticket with the same name would create an issue.
Thanks in advance
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3

JackMcConnick
Posts: 2
Joined: Mar 04, 2019 12:58 am

Re: adding 2 files with the same name to the same issue

Post by JackMcConnick » Mar 04, 2019 3:50 am

Hey mcmo, have you found the answer for this? Because I'm looking for one.
Thanks!
Chief editor @ EatrBox | CleverMicro | Toodrie | Camengo

cas
Posts: 600
Joined: Mar 11, 2006 11:08 am
Contact:

Re: adding 2 files with the same name to the same issue

Post by cas » Mar 04, 2019 5:16 am

Jack, it does not make sense to load the same file twice. Within Mantis a filename must be unique per bug.

JackMcConnick
Posts: 2
Joined: Mar 04, 2019 12:58 am

Re: adding 2 files with the same name to the same issue

Post by JackMcConnick » Mar 04, 2019 8:47 pm

cas wrote:
Mar 04, 2019 5:16 am
Jack, it does not make sense to load the same file twice. Within Mantis a filename must be unique per bug.
Thank you for the clarification.
Chief editor @ EatrBox | CleverMicro | Toodrie | Camengo

Post Reply