Bug 1211687

Summary: Duplicate foreman providers can be added
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Keenan Brock <kbrock>
Status: CLOSED ERRATA QA Contact: Aziza Karol <akarol>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.4.0CC: gmccullo, hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 12:58:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aziza Karol 2015-04-14 15:26:50 UTC
Description of problem:


Version-Release number of selected component (if applicable):
5.4.0.0.19.20150410165622_ad23806

How reproducible:
100%

Steps to Reproduce:
1.Add a foreman provider
2.Again add the foreman provider with the same URL but different name.
3.

Actual results:
Duplicate foreman providers get added.

Expected results:
Duplicate foreman provider should not get added.
proper validation for URL is required.

Additional info:

Comment 2 CFME Bot 2015-04-15 16:16:14 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e5298c789c8274dc7b14544d8bd8ab6a8755e7c8

commit e5298c789c8274dc7b14544d8bd8ab6a8755e7c8
Author:     Keenan Brock <kbrock>
AuthorDate: Tue Apr 14 22:02:20 2015 -0400
Commit:     Keenan Brock <kbrock>
CommitDate: Tue Apr 14 22:02:20 2015 -0400

    Ensure the foreman url is unique
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1211687

 vmdb/app/models/provider_foreman.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 4 Aziza Karol 2015-04-30 07:46:38 UTC
Flash message "Url has already been taken" is displayed.

Verified:
5.4.0.0.24.20150427192818_1fd9e49

Comment 6 errata-xmlrpc 2015-06-16 12:58:21 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-1100.html