Created attachment 918971 [details]
two enteries with same OS name and version
Description of problem:
I was trying to create OS with name RedHat and version 6.5. Later, I realized OS was already there with same name and version. I think UI should throw some error message that "OS Name with same version has already been taken"
I think we can't uniqueify OS just on the basis of name. As OS can be of same name but with diff versions.
Version-Release number of selected component (if applicable):
sat6 GA snap1
Steps to Reproduce:
1. create a OS with name RedHat and major/minor version: 6/5
2. create another OS with same name and version.
UI allows use to create OS with same name and version
UI should throw error if one OS already there with same name and version
Created redmine issue http://projects.theforeman.org/issues/6886 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/7743 has been closed
There was a recent commit 8b737c9c7648b3726dadb3b2e4708fcb43af02a8 that fixed this.
It was unfortunately hidden within a commit called 'fixes #4386 - gem friendly_id to simplify find by id, name, label, etc'
The was a db migration that added a field called 'title' that must be unique.
Please verify that this is fixed and I (or you) can close this issue.
Applied in changeset commit:59b230959ab24b3573eb87616805bf3218a2cb13.
Verified with upstream:
On creating a OS with existing name and version, UI raises:
"Operating system version already exists"
Please see the attached screenshot
Created attachment 1068997 [details]
UI raises error on creating an OS with existing name and version
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.