Description of problem: Fix for bug 907242 prevented importing distros with osmajor matching an existing alias. However, the reverse is still allowed, but should not be. It breaks operations in other parts of the server such as in adding a task to the task library. The fix for this bug will not allow setting an alias which already matches an existing osmajor. Version-Release number of selected component (if applicable): 19.1 How reproducible: Always. Steps to Reproduce: 1. Go to the Admin -> OS Versions page 2. Click on any OSMajor 3. Add an alias which is the same as any other existing OSMajor 4. Alias is successfully set Actual results: (4) above. Expected results: The fix for this bug will not allow setting an alias which already matches an existing osmajor. Additional info:
The other problem we must fix as part of this is that the form currently accepts empty string and stores that. Clearing the alias should store NULL instead. Believe it or not, "" is a valid OS major and it even exists in our Beaker installation, so storing "" for the alias will still be a duplicate.
http://gerrit.beaker-project.org/3898
Beaker 19.2 has been released.