Project

Profile

Help

Issue #760

Users cannot be created with pulp-admin

Added by rbarlow over 6 years ago. Updated over 2 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 - WONTFIX<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision b84f3a90 View on GitHub
Added by mhrivnak over 6 years ago

Fixed a bindings bug that caused user creation to fail.

fixes #760

Revision b84f3a90 View on GitHub
Added by mhrivnak over 6 years ago

Fixed a bindings bug that caused user creation to fail.

fixes #760

History

#1 Updated by rbarlow over 6 years ago

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

#2 Updated by dkliban@redhat.com over 6 years ago

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

#3 Updated by bmbouter over 6 years ago

  • Severity changed from High to 3. High

#4 Updated by mhrivnak over 6 years ago

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

#5 Updated by mhrivnak over 6 years ago

  • Status changed from ASSIGNED to POST

#6 Updated by mhrivnak over 6 years ago

  • Status changed from POST to MODIFIED

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

#7 Updated by mhrivnak over 6 years ago

  • % Done changed from 0 to 100

#8 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from MODIFIED to 5

#9 Updated by igulina@redhat.com about 6 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/"}

#10 Updated by amacdona@redhat.com over 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF