Actions
Bug #7260
closedCreating user in v1 API returns: undefined method `key?' for #<JSON::Ext::Generator::State:...>
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1133792
Description of problem:
API for user creation fails with:
{"message":"undefined method `key?' for #<JSON::Ext::Generator::State:0x0000000b3fd378>"}
but the user gets created!
Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140823.0-Satellite-x86_64
How reproducible:
always
Steps to Reproduce:
- curl "$(hostname)/api/users" -u admin:changeme -H "Accept: application/json" -H "Content-Type: application/json" -d '{"user":{"login":"another","mail":"root@localhost","auth_source_id":1,"password":"another_gfolvwxr"}}'
Actual results: {"message":"undefined method `key?' for #<JSON::Ext::Generator::State:0x0000000b3fd378>"}
Additionally the user was created, even if an exception was thrown.
Expected results:- no error && user gets created
or - error && do not create the user
Updated by Dominic Cleal almost 11 years ago
- Category set to API
- Assignee deleted (
Bryan Kearney) - Priority changed from Low to Normal
Seen on RPM installation, similar to #6003 I guess.
Updated by Tomer Brisker over 7 years ago
- Status changed from New to Rejected
API v1 is deprecated. closing.
Actions