Bug 734460

Summary: Roles can initially be created with prepended whitespace
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Partha Aji <paji>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mmccune
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: 2012-08-22 17:54:26 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: 747354    

Description Corey Welton 2011-08-30 13:01:21 UTC
Description of problem:
Upon initial creation of a role, said role can be created with leading whitespace.

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


How reproducible:


Steps to Reproduce:
1.  Administration > Roles > New Role
2.  Attempt to create a role, "      this is a test role     "
3.  Save
4.  Attempt to edit role
  
Actual results:
Upon edit, user will note that the trailing whitespace has been removed during initial create, but the leading whitespace was not.

Expected results:
Do not allow leading whitespace when creating roles.

Additional info:

Comment 2 Corey Welton 2011-10-05 17:27:02 UTC
Validation Failed:
Name must not contain leading or trailing white spaces.

QA Verified