Defect #41975
closed
Uniqueness of Project model fields is not checked sufficiently
Added by Hiroyuki Kano about 1 year ago.
Updated about 1 year ago.
Description
In the Project model, :identifier is defined as unique, but it is not guaranteed to be unique in the database.
If transactions are processed in parallel, projects with the same identifier may be created.
Therefore, we propose to add unique-index to the database to guarantee uniqueness.A patch for this purpose is attached.
Files
The attached patch was incomplete and will be replaced.
- Status changed from New to Confirmed
- Target version set to 6.1.0
Thank you for your report.
This issue affects almost all versions of Redmine. However, as a general policy, maintenance releases of Redmine do not include database migrations. Therefore, I set the target version of this issue to 6.1.0, instead of 5.1.6 or 6.0.3.
- Status changed from Confirmed to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix in r23407. Thank you for your contribution.
Also available in: Atom
PDF