You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Rich Bolen (JIRA)" <ji...@apache.org> on 2010/04/20 21:26:14 UTC

[jira] Updated: (CAMEL-2638) Restlet component is URL encoding the POST message body. It should encode it based on content-type request header.

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

Rich Bolen updated CAMEL-2638:
------------------------------

    Attachment: camel-restlet-CAMEL-2638.patch

> Restlet component is URL encoding the POST message body.  It should encode it based on content-type request header.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2638
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2638
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.1.0
>         Environment: Windows XP
>            Reporter: Rich Bolen
>         Attachments: camel-restlet-CAMEL-2638.patch
>
>   Original Estimate: 1 week
>  Remaining Estimate: 1 week
>
> I attempted to POST a JSON document to couchdb via restlet.  The post fails with and "Invalid JSON format" error from couchdb.  This is because the POST data was being URL encoded which substitutes %XX sequences for all the curly braces.  I believe the encoding should be done based on the content-type header, or possibly not at all for POST requests.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.