View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
595 | RackTables | default | public | 2012-08-30 11:41 | 2012-09-03 00:18 |
Reporter | TraXter | Assigned To | adoom42 | ||
Priority | low | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.20.0 | ||||
Target Version | 0.20.0 | Fixed in Version | 0.20.0 | ||
Summary | 595: 0.20.0 allows multiple objects to be added with same name | ||||
Description | When adding an object, RT 0.19.13 reported "Database error: such record already exists" in case the name was already in the database. Since RT 0.20.0, the behaviour is to add a second object with the same name - without warning. Using the search, RT result shows two objects with same name, but at least with different name. We are using uniqe names for RT objects here and relied on that feature to avoid giving same name to servers multiple times. I'm not sure if this is now intended for the new version or if it is just a bug showing up. If it is a feature, would it be possible to at least give an option to enable unique name checking? Cheers Thomas | ||||
Steps To Reproduce | Go to Main Page -> Objects -> Add more and add an object with name "test". Then again add a new object with same name "test" - RT 0.19.13 notices the record is already existing and aborts addition. RT 0.20.0 however adds another object. | ||||
Tags | No tags attached. | ||||
Couldn't edit the description: Second sentence should say " ..., but at least with different IDs" |
|
Aaron, this probably has something to do with the modified Object table, could you review? | |
Duplicates are allowed at the database level because racks are now stored as objects, and having multiple racks with the same name is reasonable. Validation needs to be added at the application level to prevent duplicates for other object types. I'll work on it. | |
This has been fixed. Now object names must be unique, with two exceptions: racks and rows. Those are cases where duplicate names are acceptable. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-30 11:41 | TraXter | New Issue | |
2012-08-30 11:45 | TraXter | Note Added: 0000767 | |
2012-08-30 11:45 | TraXter | Note Edited: 0000767 | |
2012-08-31 21:11 | infrastation | Note Added: 0000768 | |
2012-08-31 21:11 | infrastation | Assigned To | => adoom42 |
2012-08-31 21:11 | infrastation | Status | new => assigned |
2012-08-31 22:48 | adoom42 | Note Added: 0000770 | |
2012-09-03 00:18 | adoom42 | Note Added: 0000775 | |
2012-09-03 00:18 | adoom42 | Status | assigned => closed |
2012-09-03 00:18 | adoom42 | Resolution | open => fixed |
2012-09-03 00:18 | adoom42 | Product Version | => 0.20.0 |
2012-09-03 00:18 | adoom42 | Fixed in Version | => 0.20.0 |
2012-09-03 00:18 | adoom42 | Target Version | => 0.20.0 |