Bug 34349 - cookies=false with request mit session cookie
Summary: cookies=false with request mit session cookie
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.7
Hardware: All other
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 16:19 UTC by dietmar müller
Modified: 2005-05-03 08:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dietmar müller 2005-04-07 16:19:30 UTC
I set in my context.xml cookies=false and send a request with a cookie
jsessionid and urlEncode don't encode my links!

the testcode looks like
URL url = new URL ("http://myServer/foo/foo");
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setUseCaches(false);           
conn.setRequestProperty("Cookie","JSESSIONID=foo");

regards Dietmar
Comment 1 Remy Maucherat 2005-04-07 17:08:16 UTC
If a cookie is submitted, Tomcat will use it. Please don't reopen the report.
Comment 2 dietmar müller 2005-04-08 08:12:21 UTC
Sorry Remy for the reopen,

but I think this is not well defined!

What happend, when the cookie contain an old or an invalid sessionid?

When I send a request with a cookie like:
Set-Cookie: JSESSIONID=1234567890

then urlRewrite don't rewrite, because we work with cookies.
An other valid session cookie can't set because in context cookies = false

???

regards Dietmar
Comment 3 Yoav Shapira 2005-05-03 16:10:06 UTC
Dietmar, please use the tomcat-user and tomcat-dev mailing lists to solicit
clarification, rather than reopening Bugzilla issues.  Thank you.