Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 514966

Summary: what's the max char length of a channel name 64chars or 256chars?
Product: Red Hat Satellite 5 Reporter: John Sefler <jsefler>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-13 16:36:19 UTC Type: ---
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: 462714    

Description John Sefler 2009-07-31 17:00:53 UTC
Description of problem:
When cloning a channel, the restrictions on the channel name are as follows (cut from the satellite gui):
must be at least 6 characters long and no longer than 256 characters, begin with a letter, and contain only letters, digits, spaces, '-', ' / ', '_' and '.'

When editing an existing channel, the restrictions on the channel name are as follows (cut from the satellite gui):
Channel name can not exceed 64 characters long
Channel name must be at least 6 characters long

The problem is that it is very easy to clone a channel with a name that is greater than 64 charaters.  For example, this defaulted clone name is 70 chars:
Clone of Red Hat Network Tools for RHEL AS (v.4 for AMD64/Intel EM64T)
Then if you try to edit the channel (changing its ackl from private to public), you get an error "Channel name can not exceed 64 characters long"

Comment 1 Shannon Hughes 2009-07-31 18:16:46 UTC
the static string on the java side needs to be updated to 256 to match the db. reason why we get into this is because the perl side clones the channel and does not limit the name to 64 characters.

Comment 3 Tomas Lestach 2012-08-13 16:36:19 UTC
This issue has been resolved within a sat54 erratum ...
http://rhn.redhat.com/errata/RHBA-2011-1252.html

Closing as duplicate.

*** This bug has been marked as a duplicate of bug 646802 ***