Hi,

The problem here is, ESB uses a hashmap to store the transport headers. So
when there are multiple headers with the same name exists, only one would
make it through the ESB (because in a map keys are unique).

I guess your requirement is a valid one though. We should look into fixing
it in a future release.

Thanks,
Hiranya

On Tue, Dec 27, 2011 at 1:54 AM, Pierce Wetter <[email protected]> wrote:

> confirmed, adding a sequence with the following shows
>
> <sequence xmlns="http://ws.apache.org/ns/synapse"; name="cookieLogger">
>    <in>
>       <log level="custom" separator=",">
>          <property name="message" value="INcoming cookies" />
>          <property xmlns:ns="http://org.apache.synapse/xsd"; xmlns:ns3="
> http://org.apache.synapse/xsd"; name="cookies" expression="$trp:cookie" />
>       </log>
>    </in>
>    <out>
>       <log level="custom" separator=",">
>          <property name="message" value="outgoing cookies" />
>          <property xmlns:ns="http://org.apache.synapse/xsd"; xmlns:ns3="
> http://org.apache.synapse/xsd"; name="setcookies"
> expression="$trp:set-cookie" />
>       </log>
>    </out>
> </sequence>
>
>
> [2011-12-26 12:09:16,896]  INFO - LogMediator message = outgoing
> cookies,setcookies =
> SU=P3--EFF2TU7P1R9xeKpLyPSTOCZd5DnXfBy7jikOmvJvuWP7Wi34UWA_VjIfz2RucehJgVHWWgP9cYuSqDiv77TiSChjCFgVzePPd4a9v2m2upCum_NTn2pP31NEbeRn;
> Domain=.cheggnet.com; Expires=Tue, 25-Dec-2012 20:09:16 GMT; Path=/
>
> Which is basically the last set-cookie header.
>
>
> From: Pierce Wetter <[email protected]>
> Date: Mon, 26 Dec 2011 11:35:12 -0800
> To: Pierce Wetter <[email protected]>, "[email protected]" <
> [email protected]>
>
> Subject: Re: [Carbon-dev] ESB 4.0.3 eating 2/3 cookies
>
>  Note that your trick of looking at $trp:Set-Cookie won't work, because
> there are 3 headers with 3 different values, which may be the problem…
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to