camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-1913) camel-jetty - Should support multipart/form posted data in the message body better
Date Sat, 15 Aug 2009 15:13:37 GMT

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

Claus Ibsen updated CAMEL-1913:
-------------------------------

    Description: 
See CAMEL-1801

It does not work as expected as the posted data should be in the *body* and not as it does
currently stored as a message header with the body as a key and with an empty value!

For instance sending a file using curl
{code}
curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
{code}

You want Camel to provide the file content in the body and the other as headers. But what
you get in the body is
{code}
------------------------------30cc29f24df6
Content-Disposition: form-data; name="data"; filename="plain.txt"
Content-Type: text/plain

Hello World
This is the second line
------------------------------30cc29f24df6--
{code}



  was:
See CAMEL-1801

It does not work as expected as the posted data should be in the *body* and not as it does
currently stored as a message header with the body as a key and with an empty value!

        Summary: camel-jetty - Should support multipart/form posted data in the message body
better  (was: camel-jetty - Should support x-www-form-urlencoded posted data in the message
body)

> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-1913
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1913
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it
does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But
what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}

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


Mime
View raw message