Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 835321

Summary: Confusing username policy validation
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: Content ManagementAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: jhadvig, mmccune, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 18:15:23 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:
Attachments:
Description Flags
Screenshot none

Description Og Maciel 2012-06-26 00:51:51 UTC
Created attachment 594319 [details]
Screenshot

Description of problem:

Seems that we have a combination of policy validations for username creation that can lead to confusing notifications.

Version-Release number of selected component (if applicable):

* candlepin-0.6.5-1.el6_2.noarch
* candlepin-tomcat6-0.6.5-1.el6_2.noarch
* katello-0.1.318-1.el6cf.noarch
* katello-all-0.1.318-1.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.7-1.el6_3.noarch
* katello-cli-0.1.112-1.el6cf.noarch
* katello-cli-common-0.1.112-1.el6cf.noarch
* katello-common-0.1.318-1.el6cf.noarch
* katello-configure-0.1.110-1.el6_3.noarch
* katello-glue-candlepin-0.1.318-1.el6cf.noarch
* katello-glue-foreman-0.1.318-1.el6cf.noarch
* katello-glue-pulp-0.1.318-1.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.10-1.el6.noarch
* pulp-1.0.4-1.el6.noarch
* pulp-common-1.0.4-1.el6.noarch
* pulp-selinux-server-1.0.4-1.el6.noarch

How reproducible:


Steps to Reproduce:
1. As the administrator, go to the new Users panel
2. Click the New User button
3. For the username use a very long username (more than 255 characters)
4. Type a 6-character password and repeat for the confirmation field
5. Enter a valid email
6. Optionally, choose a default organization
7. Click the save button
  
Actual results:

The following notification pops up:

Validation Failed:
* Username is too long (maximum is 255 characters)
* Username cannot contain more than 64 characters


Expected results:

Only one of these rules should be displayed

Additional info:

Comment 1 Jakub Hadvig 2012-10-24 11:31:32 UTC
Now instead of two validation errors:
- Username is too long (maximum is 255 characters)
- Username cannot contain more than 64 characters
 
there will be only one:  
- Username cannot contain more than 64 characters

because there is no point to have the default validation of username with maximum length 255 characters.


Changeset is => 03cc3c4

Comment 2 Tom McKay 2012-10-26 18:01:33 UTC
  Branch: refs/heads/master
  Home:   https://github.com/Katello/katello
  Commit: 03cc3c438d4862f7b158d8febb6aea3edde39fa6
      https://github.com/Katello/katello/commit/03cc3c438d4862f7b158d8febb6aea3edde39fa6
  Author: Jakub Hadvig <j.hadvig>
  Date:   2012-10-24 (Wed, 24 Oct 2012)

Comment 3 Mike McCune 2013-08-16 17:55:19 UTC
getting rid of 6.0.0 version since that doesn't exist

Comment 4 Mike McCune 2013-09-19 18:15:23 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.