Bug 1023518

Summary: Calling subscription-manager orgs with a user who has . in their name fails
Product: Red Hat Satellite Reporter: David Davis <daviddavis>
Component: APIAssignee: David Davis <daviddavis>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: cwelton, mmccune, omaciel
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: 2014-07-02 14:06:04 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:

Description David Davis 2013-10-25 15:29:10 UTC
Description of problem:

Calling subscription-manager orgs with a user who has @ in their name fails. Here's an example of the command:

subscription-manager orgs --username "gkhachik" --password "asd\!" 

The response is "Resource not found on server"

Here's an example curl request which returns a 404:

curl http://127.0.0.1:3000/katello/api/users/admin@mail.com/owners -u "admin:admin"

For more info you can visit https://bugzilla.redhat.com/show_bug.cgi?id=956650#c12. 


Steps to Reproduce:
1. Create a user with @ in their username
2. Call subscription-manager orgs on a client using that user you've created.


Actual results:

Resource not found.


Expected results:

List of orgs.

Comment 2 David Davis 2013-10-25 16:57:57 UTC
Sorry, it's actually the "." and not the "@" that is causing this bug.

Comment 3 David Davis 2013-10-25 17:14:24 UTC
https://github.com/Katello/katello/pull/3270

Comment 4 David Davis 2013-10-25 17:16:24 UTC
QE steps:

1. Create user with "." in their name such as "admin"
2. Run this on a client machine:

subscription-manager orgs --username "admin" --password "admin"

Comment 5 David Davis 2013-10-25 21:25:52 UTC
katello-cli

ae6c673b2bc9ce71a8416759837abb68577ab717

1023518: Loosening url contraints on owner list path to accept names with .

Comment 7 Corey Welton 2014-04-24 17:32:34 UTC
Verified in Satellite-6.0.3-RHEL-6-20140423.1

Comment 8 Bryan Kearney 2014-07-02 14:06:04 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.