On Tue, Jul 12, 2011 at 7:35 AM, Claus Ibsen <[email protected]> wrote:
> On Tue, Jul 12, 2011 at 7:33 AM, Taariq Levack <[email protected]> wrote:
>> Hi
>>
>> I just tried it on 2.7.2 and you will see this kind of log.
>>
>> [                          main] SpringCamelContext             TRACE
>> Getting endpoint with uri:
>> jetty:http://0.0.0.0:8080/Message?say=hello&to=bob&to=bill
>> [                          main] SpringCamelContext             TRACE
>> Getting endpoint with normalized uri:
>> jetty://http://0.0.0.0:8080/Message?say=hello&to=bill
>> [                          main] DefaultComponent               DEBUG
>> Creating endpoint
>> uri=[jetty://http://0.0.0.0:8080/Message?say=hello&to=bill],
>> path=[http://0.0.0.0:8080/Message], parameters=[{say=hello, to=bill}]
>>
>>
>> Now I don't know if it's supposed to behave this way, or if it's
>> supposed to map such headers with an Object of type List or whatever.
>> But if you need a quick workaround, you can pass such a parameter
>> comma delimited and then split on that.
>> Assuming you're in control of the producer.
>>
>
> Can you create a JIRA ticket? The normalize uri logic need to support
> dual parameters with same keys
>

I created a ticket
https://issues.apache.org/jira/browse/CAMEL-4211

I have reproduced the issue and will try to implement a fix asap so it
can be fixed in the upcoming Camel 2.8 release that is due soon.


>> Taariq
>>
>>
>> On Tue, Jul 12, 2011 at 7:13 AM, Claus Ibsen <[email protected]> wrote:
>>> Hi
>>>
>>> What version of Camel are you using?
>>>
>>>
>>> On Tue, Jul 12, 2011 at 12:44 AM, Blair <[email protected]> wrote:
>>>> I am wondering if i am doing this wrong, or if there is a work around?
>>>>
>>>> Fields posted (or getted) from a form are placed as headers, which is a
>>>> wonderful beautiful thing.
>>>> however...
>>>>
>>>> a url of the form http://localhost:8080/Message?say=hello&to=bob&to=bill
>>>> causes issues. The POST and PUT equivalents are the same.
>>>>
>>>> The "to" header will only have bob, and bill is completely lost. I thought
>>>> we would end up with a list there, or something I could split on.
>>>>
>>>> Anyway way around this?
>>>>
>>>> The reason I want to to this is forms that have a list where you can select
>>>> multiple entries are sent this way, and I need to process the result.
>>>>
>>>> --- Blair
>>>>
>>>> --
>>>> View this message in context: 
>>>> http://camel.465427.n5.nabble.com/Problems-with-jetty-component-and-posts-with-more-then-one-value-for-a-field-tp4576908p4576908.html
>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> FuseSource
>>> Email: [email protected]
>>> Web: http://fusesource.com
>>> Twitter: davsclaus, fusenews
>>> Blog: http://davsclaus.blogspot.com/
>>> Author of Camel in Action: http://www.manning.com/ibsen/
>>>
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [email protected]
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to