Description of problem:
Although one cannot initially create a role with whitespace appending or prepending the name -- it gets truncated -- subsequent attempts to edit the role allows addition of whitespace.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a new role, "test role "
2. Note that when it gets created, it is saved, "test role"
3. Navigate to the role you just created
4. Chose to edit this role
5. Append spaces to the role name "test role "
7. Again attempt to edit
The extra whitespace has been appended to the end of the role name
Uniform handling of valid role names throughout creation and update
Users can actually initially create a role prepended with whitespace, though whitespace at the end is removed. This is a separate bug however.
This should be fixed as of http://git.fedorahosted.org/git/?p=katello.git;a=commit;h=e2ba9f42333d544b6c007e6958b81f594506d093