Bug 1313079

Summary: Organization create API call don't return the ID of created entity
Product: Red Hat Satellite Reporter: Elyézer Rezende <erezende>
Component: APIAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 22:00:13 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:

Description Elyézer Rezende 2016-02-29 21:45:07 UTC
Description of problem:
When doing a API create request for Organization it is not returning the ID of the created entity. Actually it is returning an empty dictionary.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Do a POST request to /katello/api/organizations
2. Check the content returned

Actual results:
No data is returned

Expected results:
At least the created entity ID is returned

Additional info:
2016-02-29 18:41:26 - nailgun.client - DEBUG - Making HTTP POST request to https://sat-server.example.com:443/katello/api/v2/organizations with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {"name": "\ud868\udd89\u9c32\ub23c\ud7dc\ud843\udc4d\ud845\udfd5\u8da9\ud86b\udee2\ud85d\ude80"}.
2016-02-29 18:41:34 - nailgun.client - DEBUG - Received HTTP 201 response: {}

Comment 1 Elyézer Rezende 2016-02-29 22:00:13 UTC

*** This bug has been marked as a duplicate of bug 1312767 ***