[ 
https://issues.apache.org/jira/browse/AMBARI-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599178#comment-13599178
 ] 

John Speidel commented on AMBARI-1406:
--------------------------------------

To include the query in the request body using the above example:

{
  "RequestInfo" : {
    "query" : "foo=bar"
  },
  "Body" : {
    "host_components": [
    {
      "HostRoles": {
        "component_name": "myComponent"
      } 
          
    } ]
  }
}

The important thing to understand is that you need to add a new category named 
"RequestInfo" to the body.  Within the "RequestInfo" category, the property 
"query" should hold the query.  The query shouldn't include any partial 
response data (fields=...). A "fields" property may be added to "RequestInfo" 
at a later time for the partial response data if necessary.   Also, a "Body" 
category is necessary which will contain the actual body.
                
> Provide API support for including query string in http message body
> -------------------------------------------------------------------
>
>                 Key: AMBARI-1406
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1406
>             Project: Ambari
>          Issue Type: Sub-task
>            Reporter: John Speidel
>            Assignee: John Speidel
>             Fix For: 1.3.0
>
>         Attachments: AMBARI-1406.patch
>
>
> For some requests the query string can be very long due to query predicates 
> and partial response fields.  This can result in a query string that exceeds 
> the default web server limit.  In Jetty, this appears to be ~4000 characters. 
>  As a result, some UI requests have been split into multiple requests.
> To avoid this issue, the API should support inclusion of the query string in 
> the http body of the request.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to