Bug 1262200 - foreman api throws 'unsupported in API v2 for POST and PUT requests' after upgrade from RHEL 6.6 to 6.7
foreman api throws 'unsupported in API v2 for POST and PUT requests' after up...
Status: CLOSED WORKSFORME
Product: Red Hat OpenStack
Classification: Red Hat
Component: rubygem-foreman_api (Show other bugs)
Foreman (RHEL 6)
All Linux
unspecified Severity high
: ---
: 5.0 (RHEL 7)
Assigned To: Mike Burns
Omri Hochman
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-11 03:15 EDT by Jaison Raju
Modified: 2015-11-10 12:18 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-10 12:18:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jaison Raju 2015-09-11 03:15:14 EDT
Description of problem:
After upgrade from RHEL 6.6 to 6.7 , curl api requests fail with error :
This used to work fine, but now we get an error such as:
{
  "error": {"message":"'Content-Type: application/x-www-form-urlencoded' is unsupported in API v2 for POST and PUT requests. Please use 'Content-Type: application/json'."}
}

Version-Release number of selected component (if applicable):
RHOS 5 RHEL6
foreman RHEL6

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
API requests fail .

Expected results:
API requests are successful .

Additional info:
Comment 3 Jaison Raju 2015-09-11 03:16:05 EDT
rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el6ost.noarch
foreman-proxy-1.6.0.33-2.el6ost.noarch
rubygem-hammer_cli_foreman-doc-0.1.1-16.el6sat.noarch
foreman-1.6.0.44-6.el6ost.noarch
bac-RHEL6-ost5-foreman-1.0-1.noarch
openstack-foreman-installer-2.0.34-1.el6ost.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.2.el6ost.noarch
foreman-installer-1.6.0-0.2.RC1.el6ost.noarch
foreman-mysql2-1.6.0.44-6.el6ost.noarch
foreman-discovery-image-7.0-20140905.0.2.el7sat.noarch
foreman-selinux-1.6.0.14-1.el6sat.noarch

Red Hat Enterprise Linux Server release 6.7 (Santiago)
Comment 7 Jaison Raju 2015-09-11 03:31:43 EDT
Similar bug is raised for katello for sat6 & upstream katello too :
https://bugzilla.redhat.com/show_bug.cgi?id=1179448
http://projects.theforeman.org/issues/8846
https://bugzilla.redhat.com/show_bug.cgi?id=1129769
Comment 9 John Fulton 2015-11-10 12:18:21 EST
The customer has worked around this issue by updating their code to use the newer API.

Note You need to log in before you can comment on or make changes to this bug.