Description of problem: aking HTTP POST request to https://sat.com/katello/api/v2/repositories with data {"content_type": "yum", "url": "http://inecas.fedorapeople.org/fakerepos/zoo2/", "name": "yvsIKReFpc", "product_id": 1048}. Received HTTP 200 response: {...} Version-Release number of selected component (if applicable): sat6.5.0 Actual results: api returns 200 OK Expected results: API should return 201 Created
Roman, is this a change in behavior from 6.4?
(In reply to Brad Buckingham from comment #2) > Roman, is this a change in behavior from 6.4? No, it is not as far as I remember. However, the behavior is inconsistent with POSTing to other endpoints. Also it made us to do workarounds in our automation. I'd like to have this sorted out finally, It should be a trivial fix.
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.
Connecting redmine issue https://projects.theforeman.org/issues/28219 from this bug
Upstream bug assigned to sseelaml
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28219 has been resolved.
VERIFIED on sat6.8.0-5 # curl -vvvsku admin:changeme -H "Content-type: application/json" -d '{"content_type": "yum", "url": "http://inecas.fedorapeople.org/fakerepos/zoo2/", "name": "pokus2", "product_id": 1}' https://$(hostname)/katello/api/v2/repositories ... < Date: Wed, 24 Jun 2020 11:13:43 GMT < Server: Apache < Foreman_version: 2.1.0-develop < Foreman_api_version: 2 ...
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 (Important: Satellite 6.8 release), 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/RHSA-2020:4366