Actions
Issue #760
closedUsers cannot be created with pulp-admin
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
Updated by rbarlow over 8 years ago
- Related to Issue #761: Pulp allows "search" as a user's login ID added
Updated by dkliban@redhat.com over 8 years ago
- Priority changed from Normal to High
- Triaged changed from No to Yes
- Platform Release set to 2.7.0
Updated by mhrivnak over 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to mhrivnak
Added by mhrivnak over 8 years ago
Added by mhrivnak over 8 years ago
Fixed a bindings bug that caused user creation to fail.
fixes #760
Updated by mhrivnak over 8 years ago
- Status changed from ASSIGNED to POST
Updated by mhrivnak over 8 years ago
- Status changed from POST to MODIFIED
QE: FYI this bug was never present in a release of pulp.
Updated by mhrivnak over 8 years ago
- % Done changed from 0 to 100
Applied in changeset pulp|b84f3a9093e26376a745d841c448f2e3eb5169a4.
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by igulina@redhat.com over 8 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/"}
Updated by amacdona@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Actions
Fixed a bindings bug that caused user creation to fail.
fixes #760