Bug #5666
closedCannot set default_organization_id at user creation
Description
https://bugzilla.redhat.com/show_bug.cgi?id=1092656
Created attachment 890865 [details]
part of /var/log/foreman/production.log
Description of problem:
Creation of an user via API with default_organization_id set fails with 500 ISE.
Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140423.1-Satellite-x86_64-dvd1.iso
How reproducible:
always
Steps to Reproduce:
1. Run @api.resource(:users).call(:create, user_hash) with following user_hash:
user_hash = {
:login => "newuser",
:firstname => "user",
:lastname => "new",
:mail => "root@localhost",
:auth_source_id => 1,
:password => "password",
:organization_ids => [13],
:default_organization_id => 13,
:location_ids => [],
:role_ids => [],
}
Actual results:
Creation of user failed with: 500 Internal Server Error: {
"error": {"message":"undefined method `key?' for #<JSON::Ext::Generator::State:0x007f696cecadd8>"}
}
but the user was created!
Expected results:
no exceptions or ISEs
Additional info:
- creating of the user without default_organization_id works and setting it using the user update API afterwards works as well
Updated by Dominic Cleal almost 11 years ago
- Is duplicate of Bug #5750: Cannot set default_organization_id at user creation added
Updated by Dominic Cleal almost 11 years ago
- Status changed from New to Duplicate
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13
Updated by Eric Helms about 10 years ago
- Translation missing: en.field_release deleted (
13)
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 166