Project

Profile

Help

Issue #760

closed

Users cannot be created with pulp-admin

Added by rbarlow about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

I tried to create a user named "search":

$ pulp-admin auth user create --login search
Enter password for user [search] : 
Re-enter password for user [search]: 
Invalid properties: ['roles']

After cursory code review, I suspect that users cannot be created via the REST interface either, though I did not test this. I believe this only affects master, though I also did not test this.


Related issues

Related to Pulp - Issue #761: Pulp allows "search" as a user's login IDCLOSED - WONTFIXActions
Actions #1

Updated by rbarlow about 9 years ago

  • Related to Issue #761: Pulp allows "search" as a user's login ID added
Actions #2

Updated by dkliban@redhat.com about 9 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
  • Platform Release set to 2.7.0
Actions #3

Updated by bmbouter about 9 years ago

  • Severity changed from High to 3. High
Actions #4

Updated by mhrivnak about 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mhrivnak

Added by mhrivnak about 9 years ago

Revision b84f3a90 | View on GitHub

Fixed a bindings bug that caused user creation to fail.

fixes #760

Added by mhrivnak about 9 years ago

Revision b84f3a90 | View on GitHub

Fixed a bindings bug that caused user creation to fail.

fixes #760

Actions #5

Updated by mhrivnak about 9 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by mhrivnak about 9 years ago

  • Status changed from POST to MODIFIED

QE: FYI this bug was never present in a release of pulp.

Actions #7

Updated by mhrivnak about 9 years ago

  • % Done changed from 0 to 100
Actions #8

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by igulina@redhat.com almost 9 years ago

  • Status changed from 5 to 6
>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch

>> pulp-admin auth user create --login search
Enter password for user [search] : 
Re-enter password for user [search]: 
User [search] successfully created

>> pulp-admin login -u search -p 123456
Successfully logged in. Session certificate will expire at Jul  3 19:16:56 2015
GMT.

>> pulp-admin logout
Session certificate successfully removed.

>> pulp-admin login -u admin -p admin
Successfully logged in. Session certificate will expire at Jul  3 19:29:58 2015
GMT.

>> pulp-admin auth user create --login my_new_user --password 654321
User [my_new_user] successfully created

>> pulp-admin auth user create --login my_new_user --password 654321 --name "Test_user"
A resource with the ID "my_new_user" already exists.

>> pulp-admin -u admin -p admin auth user create --login my_new_user1 --password 654321 --name "Test_user"
User [my_new_user1] successfully created

Users creation works too, as shown in verification note to #400

curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"login":"test123", "password":"123456"}' "https://localhost/pulp/api/v2/users/" 
HTTP/1.1 201 CREATED
Date: Fri, 26 Jun 2015 16:52:13 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 187
Location: https://localhost/pulp/api/v2/users/test123/
Content-Type: application/json

{"_id": {"$oid": "558d833ee512ed777daefd31"}, "name": "test123", "roles": [], "_ns": "users", "login": "test123", "id": "558d833ee512ed777daefd31", "_href": "/pulp/api/v2/users/test123/"}
Actions #10

Updated by amacdona@redhat.com over 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #12

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF