Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionOleksandr Shtaier
2016-02-29 09:10:52 UTC
Description of problem:
POST /katello/api/organizations request does not return data.
Request:
https://my_server/katello/api/organizations
{"name":"Test_Org_011"}
Response:
{}
For example, when I create similar request for architecture entity, I get some data:
Request
POST https://my_server/api/architectures
{"architecture":{"name":"Test_Arch_011"}}
Response:
{"created_at":"2016-02-29 08:54:53 UTC","updated_at":"2016-02-29 08:54:53 UTC","name":"Test_Arch_011","id":28,"operatingsystems":[],"images":[]}
Or in older versions (6.1.x) we have next output for organization entity:
Request:
https://my_server/katello/api/organizations
{"name":"Test_Org_011"}
Response:
{"ancestry":null,"apply_info_task_id":null,"created_at":"2016-02-29T09:06:28Z","description":null,"id":812,"ignore_types":[],"katello_default":true,"label":"Test_Org_011","name":"Test_Org_011","title":"Test_Org_011","updated_at":"2016-02-29T09:06:28Z","service_levels":[],"service_level":null}
Version-Release number of selected component (if applicable):
6.2.0 BETA
How reproducible:
Always
Steps to Reproduce:
1. Try to create new organization entity
Actual results:
Empty payload returned from the server in response
Expected results:
All necessary data is present in response
Additional info:
Moving to POST since upstream bug http://projects.theforeman.org/issues/13950 has been closed
-------------
Brad Buckingham
Applied in changeset commit:katello|fe7570939d3ca406e005406919c0e5ff17c4d117.
*** Bug 1313079 has been marked as a duplicate of this bug. ***
Comment 7Oleksandr Shtaier
2016-03-03 10:25:28 UTC
Two questions:
1) Is it intended behavior that all POST requests to server return 201 status code, but only that one start to return 200 and only after current fix?
2) Is it intended to return so much data in response (like internal information - 'defaultServiceLevel', 'logLevel', 'redhat_repository_url', and etc)?
Adding attachment with more details
Comment 8Oleksandr Shtaier
2016-03-03 10:26:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2016:1500