Closed
Bug 269751
Opened 21 years ago
Closed 20 years ago
If any part of a cookie path is urlencoded, the cookie will not be sent. Cookies set for /~foo are not sent to /%7Efoo
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
RESOLVED
EXPIRED
People
(Reporter: caskey-bugzilla, Assigned: darin.moz)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OSX Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
When accessing a page at the url http://www.example.com/~bob, if a cookie is set
like so: Set-Cookie=JSESSIONID=E9D0A80253FD6038D4AE6DC31BF3AED0; Path=/~bob; the
cookie will not be passed back on subsequent requests. However, manually
replacing the encoded ~ with the literal, will cause the cookie to be sent.
Quite difficult to track down, quite confusing when the cookie manager was
showing the cookie being set, but the web server was not receiving any cookies
back, yet all other cookies appeared to be functioning correctly.
I've tested it with replacement of arbitrary parts of the URL with a url-escaped
equivalent (letters, numbers, ~, etc.), all with the same result.
Reproducible: Always
Steps to Reproduce:
1. Set cookie for URL prefix /~foo
2. Edit URL in location bar to replace *any* portion of the cookie path with
escaped equivalent
3. Load page, cookie will not be sent
Actual Results:
Discovered using Tomcat's session management system with user app contexts.
(Each ~user running in its own context.)
Updated•21 years ago
|
Assignee: firefox → darin
Component: General → Networking: Cookies
Product: Firefox → Browser
QA Contact: firefox.general → core.networking.cookies
Version: unspecified → 1.7 Branch
Comment 1•21 years ago
|
||
well, the path _is_ different... I'm not sure if we should unescape it. maybe
there can be security issues due to charsets.
darin, ideas on this?
Comment 2•20 years ago
|
||
This is an automated message, with ID "auto-resolve01".
This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.
While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.
If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.
The latest beta releases can be obtained from:
Firefox: http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey: http://www.mozilla.org/projects/seamonkey/
Comment 3•20 years ago
|
||
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → EXPIRED
You need to log in
before you can comment on or make changes to this bug.
Description
•