You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/07/07 20:57:04 UTC

[jira] [Resolved] (CALCITE-696) Avatica should sent payload in message body, not header

     [ https://issues.apache.org/jira/browse/CALCITE-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-696.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0-incubating

Now CALCITE-780 is fixed, the server will accept payload in either the "request" header or in the body.

The client now sends short requests in the header and long requests in the body, but the server must support requests in either place.

> Avatica should sent payload in message body, not header
> -------------------------------------------------------
>
>                 Key: CALCITE-696
>                 URL: https://issues.apache.org/jira/browse/CALCITE-696
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>            Reporter: Nick Dimiduk
>             Fix For: 1.4.0-incubating
>
>
> This one is pretty surprising; noticed while playing around with the server with curl. We're reading the request payload off of the {{request}} header rather than from the request payload. For example, this is required:
> {noformat}
> curl -XPOST \
>   -H 'request: {"request":"prepareAndExecute","connectionId":"3b0f3231-47d2-45f0-9aba-1f317955beaa","sql":"select * from WEB_STAT","maxRowCount":-1}' \
>   http://localhost:8765/
> {noformat}



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