Bug 719378
Summary: | White space in user name causes error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | J.C. Molet <jmolet> |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED ERRATA | QA Contact: | J.C. Molet <jmolet> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2 | CC: | jsefler, skallesh, spandey |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 17:22:02 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: | 682238 |
Description
J.C. Molet
2011-07-06 16:06:17 UTC
Attemnpted to recreate with latest in master, and I am guessing it has been fixed. [root@bkearney src]# ./subscription-manager register --org admin --auto --user " fred" --password admin Invalid Credentials [root@bkearney src]# ./subscription-manager register --org admin --auto --user " admin" --password admin Invalid Credentials [root@bkearney src]# ./subscription-manager register --org admin --auto --user ' admin' --password admin Invalid Credentials [root@bkearney src]# This does work on the CLI now as expected. For some reason though I still get the same "Network Error" on the GUI register instead of the expected "Invalid Credentials" error. try 5de26be1a1e7edaa321313fa595e0bc8c06db4dc in master. white-space before and after the username in the GUI is now stripped so that "tesuser " and " testuser" both work (if user "testuser" exists). A network error still occurs if you enter in "test user" where an invalid username message should be displayed. The second fix required a change in python-rhsm. Fixed in master of that package at: b811552066ead8c7175d7389be13aa81d63e54fd Moving the bug to verified. It works fine now. Error message "Invalid credentials" is displayed if you enter in "test user1". Rpm's used: subscription-manager-0.96.5-1.git.5.4303921.el6.x86_64 subscription-manager-firstboot-0.96.5-1.git.5.4303921.el6.x86_64 subscription-manager-gnome-0.96.5-1.git.5.4303921.el6.x86_64 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1695.html |