Bug 734114
Summary: | register with --org="foo bar" throws a NetworkException instead of a RestlibException | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Alex Wood <awood> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.7 | CC: | awood, jmolet, skallesh, spandey, wpoteat |
Target Milestone: | beta | ||
Target Release: | 5.8 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
No description necessary
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-21 06:31:36 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: | 715031 |
Description
John Sefler
2011-08-29 13:40:50 UTC
I suspect the fix for this is to url encode the orgKey when calling the candlepin api. My guess is that the api path is getting assembled with the requested orgkey "foo bar" which creates an invalid http request when there is a space in the value. Committed 78110be74fc82def8c694623af8903a282de347c in python-rhsm Available in versions 0.98.3+ [root@jmolet-vm4 product]# subscription-manager register --user testuser1 --pass password --org="two words" Organization two words does not exist. [root@jmolet-vm4 product]# subscription-manager register --user testuser1 --pass password --org="two_words" Organization two_words does not exist. This looks like it works properly now, marking VERIFIED: [root@jmolet-vm4 product]# rhsm-version python-rhsm-0.98.3-1.git.2.74cd6bb.el5_7 subscription-manager-gnome-0.98.3-1.git.16.14460bc.el5_7 subscription-manager-firstboot-0.98.3-1.git.16.14460bc.el5_7 subscription-manager-0.98.3-1.git.16.14460bc.el5_7 candlepin version: commit 1f4169cab5617b4a3209f13a6cc0f17f6d901e6f Date: Fri Nov 11 08:15:33 2011 -0500 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No description necessary 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-2012-0154.html |