Bug 494627 - "Invalid Channel Name" error message should explain why channel name is invalid
Summary: "Invalid Channel Name" error message should explain why channel name is invalid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 530
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Jay Dobies
QA Contact: Sayli Karmarkar
URL:
Whiteboard:
Depends On:
Blocks: 456998
TreeView+ depends on / blocked
 
Reported: 2009-04-07 16:07 UTC by Sayli Karmarkar
Modified: 2015-03-23 01:09 UTC (History)
4 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:48:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sayli Karmarkar 2009-04-07 16:07:27 UTC
Description of problem:

Scenario 1:

Steps to Reproduce:
1. Go to manage software channels
2. try to create a channel with a 4 letter channel name.

Scenario 2:
1. Go to manage software channels
2. try to create a channel with a channel name "foobar#$%"

Scenario 3: 
1. Go to manage software channels
2. create channel testchannel
3. again try to create a channel with the same name

This scenario is worse in multiorg case where one org doesnt know that a channel with the same name exists in other org. 
  
Actual results:
Invalid Channel Name

Expected results:
Invalid Channel Name : Channels exists with the same name
Invalid Channel Name : Channel need to be atleast * characters
Invalid Channel Name : Invalid character in channel name

Comment 1 Jay Dobies 2009-04-27 21:27:40 UTC
commit	96acc2313cb5372cc3eae22b50ef11cba32b4c28
tree	825e935cfcc838b0e38a55aa3fd77b81e0506de2

Added more fine grained error messages for invalid channel data.

There is now a specific error message for the following conditions:
- Channel name/label is all whitespace or not specified
- Channel name/label is not the required length (6)
- Channel name/label does not match the appropriate regex validation
- Channel name/label is already in use
- Channel name/label is a Red Hat channel (starts with rhn or red hat) and the user is not a super user

Comment 2 Jay Dobies 2009-04-27 21:28:58 UTC
Vader

commit	b5acbafcb141a1d48287be3a1fadd3e6670c3e9d
tree	e37d04114b78baa74f44168b4fc3f611bad78d95

Comment 3 Sayli Karmarkar 2009-05-22 19:58:24 UTC
Verified all above cases.

Comment 4 Brad Buckingham 2009-07-31 17:20:22 UTC
verified all cases using the 7/24 stage iso... moving to RELEASE_PENDING

Comment 5 Brandon Perkins 2009-09-10 19:48:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


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