View Issue Details

IDProjectCategoryView StatusLast Update
595RackTablesdefaultpublic2012-09-03 00:18
ReporterTraXter Assigned Toadoom42  
PrioritylowSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.0 
Target Version0.20.0Fixed in Version0.20.0 
Summary595: 0.20.0 allows multiple objects to be added with same name
DescriptionWhen 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 ReproduceGo 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.
TagsNo tags attached.

Activities

TraXter

TraXter

2012-08-30 11:45

reporter   ~0000767

Last edited: 2012-08-30 11:45

Couldn't edit the description: Second sentence should say " ..., but at least with different IDs"

infrastation

infrastation

2012-08-31 21:11

administrator   ~0000768

Aaron, this probably has something to do with the modified Object table, could you review?
adoom42

adoom42

2012-08-31 22:48

administrator   ~0000770

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.
adoom42

adoom42

2012-09-03 00:18

administrator   ~0000775

This has been fixed. Now object names must be unique, with two exceptions: racks and rows. Those are cases where duplicate names are acceptable.

Issue History

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