Bug 1286238

Summary: UI permits creation of subscription management application with invalid name
Product: Red Hat Quickstart Cloud Installer Reporter: Antonin Pagac <apagac>
Component: WebUIAssignee: Dylan Murray <dymurray>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0CC: arubin, dymurray, jmatthew, tcarlin
Target Milestone: TP2Keywords: Triaged
Target Release: 1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-03 19:04:04 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:
Bug Depends On:    
Bug Blocks: 1291836    

Description Antonin Pagac 2015-11-27 14:46:09 UTC
Description of problem:
In the Subscription section, user is permitted to create new Subscription management application without checking for invalid characters. The application with invalid characters actually gets created on the server, which may cause problems referencing it and deleting it.

According to acces.redhat.com:
"Name may only contain letters, numbers, period, underscore, or hyphen."

Version-Release number of selected component (if applicable):
RHCI-6.0-RHEL-7-20151118.t.0-RHCI-x86_64-dvd1.iso

How reproducible:
Always

Steps to Reproduce:
1. Start a deployment
2. Go to Subscription section
3. Click on "New Subscription Management Application", input invalid characters
4. Application gets created. Check on access.redhat.com, it is there.

Actual results:
Subscription management application with invalid characters in the name gets created

Expected results:
RHCI UI checks for invalid characters, prints error; does not allow to continue

Additional info:

Comment 1 Dylan Murray 2016-01-14 21:22:16 UTC
https://github.com/fusor/fusor/pull/626

Invalid characters now displays an error message letting the user know the management application was not created.

Comment 2 Antonin Pagac 2016-01-15 11:48:37 UTC
Failed QA.

I'm able to add application with invalid name:

"apagac-%ˇˇ+$$'>*\(/| added successfully."


RHCI-6.0-RHEL-7-20160114.t.0-RHCI-x86_64-dvd1.iso

Comment 3 Antonin Pagac 2016-01-26 11:40:47 UTC
Verified.

RHCI-6.0-RHEL-7-20160122.t.1-RHCI-x86_64-dvd1.iso