-
1. Re: Cookie Issue with latest JBoss/TC Bundle
maumau Jul 13, 2005 8:30 AM (in response to homerlex)I have the same problem and found no workaround
-
2. Re: Cookie Issue with latest JBoss/TC Bundle
saschwen Nov 29, 2005 3:41 PM (in response to homerlex)Has anyone found a fix for this? I'm trying to port over a large app from another application server and I am running into the same problem.
Thank you,
Steve. -
3. Re: Cookie Issue with latest JBoss/TC Bundle
anil.saldhana Nov 29, 2005 4:10 PM (in response to homerlex)Tested this against the codebase going to be jboss 4.0.4 and I see no problems.
Try with jboss 4.0.3 and tell us if you still see the issues:15:06:26,890 INFO [Server] JBoss (MX MicroKernel) [4.0.4beta (build: CVSTag=Bra nch_4_0 date=200510261736)] Started in 1m:7s:78ms 15:06:49,390 INFO [[/identity-new]] Identity Test Servlet: Setting cookie:domai n:locahost:path=/:name=jbossssocookie:value=8177090_1133298409390
My cookie code is as follows:private Cookie createCookie(String domain) { String token = "" + this.hashCode() + "_" + System.currentTimeMillis(); Cookie cookie = new Cookie("jbossssocookie",token); cookie.setDomain(domain); cookie.setPath("/"); cookie.setMaxAge(-1); return cookie; }
-
4. Re: Cookie Issue with latest JBoss/TC Bundle
saschwen Nov 30, 2005 11:08 AM (in response to homerlex)Hello,
I've upgraded from 4.0.2 to 4.0.3 and have tried my app again and I'm still getting the quotes.
The cookie value should be 1,1,3,520,CA,Ontario,ad_type?step=init but the actual value I get is "1,1,3,520,CA,Ontario,ad_type?step=init"
Could this be an underlying problem with tomcat? -
5. Re: Cookie Issue with latest JBoss/TC Bundle
saschwen Nov 30, 2005 12:22 PM (in response to homerlex)Hello,
I've also found an odd problem with this cookie.
For some reason after redirecting to another url, jboss parses the cookie oddly. What happens is jboss splits the cookie where the commas are. For example say the cookie is named people and the value is(with the quotes) "bob,joe,steve,ian". Jboss creates the cookies with the following key value pairs.
people="bob
joe=
steve=
ian"=
The = sign is the key value separator. I'm not sure why jboss does this, but I found this info about jetty. Does jboss use jetty?
Jetty-4.1.D2 - 24 June 2002
+ Support trusted external authenticators.
+ Moved jmx classes from JettyExtra to here.
+ Set contextloader during webapplicationcontext.start
+ Added AJP13 listener for apache integration.
+ Fixed ChunkableOutputStream close propagation
+ Better recycling of HttpRequests.
+ Protect session.getAttributeNames from concurrent modifications.
+ Allow comma separated cookies and headers
+ Back out Don't chunk 30x empty responses.
+ Conditional header tested against welcome file not directory.
+ Improved ThreadedServer stopping on bad networks
+ Use ThreadLocals to avoid unwrapping in Dispatcher.
Can anyone help? Please!!! -
6. Re: Cookie Issue with latest JBoss/TC Bundle
saschwen Nov 30, 2005 12:24 PM (in response to homerlex)sorry,
I forgot to mention to look at the point that says "Allow comma separated cookies and headers" could that patch somehow created this bug? -
7. Re: Cookie Issue with latest JBoss/TC Bundle
vickyk Dec 1, 2005 10:47 PM (in response to homerlex)Does this happens only with the cookies values which are having spaces or for all ?
Vicky -
8. Re: Cookie Issue with latest JBoss/TC Bundle
shashank_shashank Dec 16, 2009 2:53 AM (in response to vickyk)Yes Vicky, I tried with Cookie value having " - " in it and it gave back cookie value surrounded by double quotes("") but when I changed the value to remove spaces and have "-", then it started giving me proper cookie value string without surrounding double quotes.
I am using JBoss_4_0_4_GA.
-
9. Re: Cookie Issue with latest JBoss/TC Bundle
hcraj Sep 14, 2013 8:59 AM (in response to homerlex)Hello All,
Even i am getting double quotes while reading cookie. This is happening with JBoss EAP 6. Anyone has any suggestion.