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)

Reply via email to