Bug 1388944

Summary: [RFE] Add New Provider Hostname field check
Product: Red Hat CloudForms Management Engine Reporter: Matt Bagnara <mbagnara>
Component: UI - OPSAssignee: John Hardy <jhardy>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: low    
Version: 5.7.0CC: hkataria, jhardy, jocarter, mpovolny, obarenbo
Target Milestone: GAKeywords: FutureFeature
Target Release: cfme-future   
Hardware: Unspecified   
OS: Linux   
Whiteboard: provider:add
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-08 11:40:39 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:

Description Matt Bagnara 2016-10-26 14:06:04 UTC
Description of problem:
Entering an invalid entry for the Hostname field results in a generic error message.

Version-Release number of selected component (if applicable):
 5.7.0.7-beta1.20161025153249_9376fbd

How reproducible:


Steps to Reproduce:
1. Compute->Containers->providers
2. Configuration->Add New Containers Provider
3. Fill out the Hostname field with something like https://openshift.rhc-lab.iad.redhat.com
4. Fill out rest of the fields.
5. Click Validate

Actual results:
Credential validation was not successful: bad component(expected host component): [https://openshift.rhc-lab.iad.redhat.com]

Expected results:
Perhaps a regex check on the input field with a more helpful error message.

Additional info:
Removing the https:// protocol works since it asks for a hostname instead of URI

Comment 2 Harpreet Kataria 2016-10-26 17:14:24 UTC
Federico,

Please send it back to me if this is a generic UI bug.

Thanks,
~Harpreet

Comment 3 Federico Simoncelli 2016-10-27 08:40:17 UTC
(In reply to Harpreet Kataria from comment #2)
> Federico,
> 
> Please send it back to me if this is a generic UI bug.

If things haven't changed recently we're just consuming the regular hostname and port fields shared across all providers.

Also I checked and this is an issue present on other providers as well (RHEV, OpenStack)