Project

General

Profile

Actions

Bug #5666

closed

Cannot set default_organization_id at user creation

Added by dustin tsang almost 10 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #5750: Cannot set default_organization_id at user creation Rejecteddustin tsang05/15/2014Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Is duplicate of Bug #5750: Cannot set default_organization_id at user creation added
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Status changed from New to Duplicate
Actions #3

Updated by Eric Helms almost 10 years ago

  • Target version set to 44
Actions #4

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions #6

Updated by Eric Helms about 9 years ago

  • translation missing: en.field_release deleted (13)
Actions #7

Updated by Eric Helms over 7 years ago

  • translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF