You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen More <st...@gmail.com> on 2008/10/30 15:55:30 UTC
Cookie problem in 5.5.26
I see in version 5.5.26 there are "Cookie handling/parsing changes!"
5.5.25 and prior I was able to read cookie values that included colons:
cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM
5.5.26 and after:
cookie-name: lastaccess cookie-value: 10/30/2008%2010
Other threads are suggesting setVersion(1) when creating the cookie.
The problem is that I am not creating this cookie. It is being created
on a different system and I just need to read it.
How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?
-Thanks
Steve More
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Cookie problem in 5.5.26
Posted by Tim Funk <fu...@joedog.org>.
An extreme kludge is to create a Filter which creates a
HttpServletRequestWrapper which overrides getCookies() with a custom
implementation.
That custom implementation would read the headers, find the cookies and
perform its own parsing mechanism to read the cookies.
-Tim
Mark Thomas wrote:
> Stephen More wrote:
>> I see in version 5.5.26 there are "Cookie handling/parsing changes!"
>>
>> 5.5.25 and prior I was able to read cookie values that included colons:
>> cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM
>>
>> 5.5.26 and after:
>> cookie-name: lastaccess cookie-value: 10/30/2008%2010
>>
>>
>> Other threads are suggesting setVersion(1) when creating the cookie.
>> The problem is that I am not creating this cookie. It is being created
>> on a different system and I just need to read it.
>>
>> How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?
>
> Get the bug fixed in the system that is generating invalid cookie values?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Cookie problem in 5.5.26
Posted by Mark Thomas <ma...@apache.org>.
Stephen More wrote:
> I see in version 5.5.26 there are "Cookie handling/parsing changes!"
>
> 5.5.25 and prior I was able to read cookie values that included colons:
> cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM
>
> 5.5.26 and after:
> cookie-name: lastaccess cookie-value: 10/30/2008%2010
>
>
> Other threads are suggesting setVersion(1) when creating the cookie.
> The problem is that I am not creating this cookie. It is being created
> on a different system and I just need to read it.
>
> How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?
Get the bug fixed in the system that is generating invalid cookie values?
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org