Bug 1023518 - Calling subscription-manager orgs with a user who has . in their name fails
Summary: Calling subscription-manager orgs with a user who has . in their name fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-25 15:29 UTC by David Davis
Modified: 2019-09-25 21:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:06:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.