ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clark Breyman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-12152) create cluster REST endpoint does not respect content-type header
Date Thu, 25 Jun 2015 23:29:04 GMT
Clark Breyman created AMBARI-12152:
--------------------------------------

             Summary: create cluster REST endpoint does not respect content-type header
                 Key: AMBARI-12152
                 URL: https://issues.apache.org/jira/browse/AMBARI-12152
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: Clark Breyman
            Priority: Minor


Summary
If the JSON request payload is sent with content type "application/json", it needs to be string-encapsulated
JSON, not bare JSON. 

this works:  
"{\"Clusters\": { \"version\": \"HDP-2.2\" }}" 

this does not:
{"Clusters": { "version": "HDP-2.2" }}

If the JSON request payload is sent with content type "text/plain", string-encapsulation is
not required. 

Why require a JSON payload with application/json content type be string-encapsulated?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message