Bug 1133792
| Summary: | Creating user in v1 API returns: undefined method `key?' for #<JSON::Ext::Generator::State:...> | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Tomas Lestach <tlestach> | ||||
| Component: | API | Assignee: | Bryan Kearney <bkearney> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0.4 | CC: | cwelton, dcleal | ||||
| Target Milestone: | Unspecified | Keywords: | Reopened, Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | http://projects.theforeman.org/issues/7260 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-09-04 18:27:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 930760 [details]
relevant part of /var/log/foreman/production.log
The v2 API appears to be unaffected, please try using /api/v2/users. Created redmine issue http://projects.theforeman.org/issues/7260 from this bug V1 API ... my fault. I created Bug 1133854 to remove V1 API from Sat6 completely. Closing per comment #6 Or not... OTOH... So, the outcome is - "we keep it broken" ? |
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