Bug 1286238 - UI permits creation of subscription management application with invalid name
Summary: UI permits creation of subscription management application with invalid name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: WebUI
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: TP2
: 1.0
Assignee: Dylan Murray
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks: rhci-sprint-12
TreeView+ depends on / blocked
 
Reported: 2015-11-27 14:46 UTC by Antonin Pagac
Modified: 2016-10-03 19:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-03 19:04:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.