ASF Bugzilla – Attachment 13058 Details for
Bug 31090
The session "disappears" when the context name contains the space character
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to encode spaces in session cookie path
patchfile.txt (text/plain), 758 bytes, created by
Ben Souther
on 2004-10-13 02:16:14 UTC
(
hide
)
Description:
Patch to encode spaces in session cookie path
Filename:
MIME Type:
Creator:
Ben Souther
Created:
2004-10-13 02:16:14 UTC
Size:
758 bytes
patch
obsolete
>Index: Request.java >=================================================================== >RCS file: /home/cvspublic/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/Request.java,v >retrieving revision 1.15 >diff -u -r1.15 Request.java >--- Request.java 12 Oct 2004 22:53:16 -0000 1.15 >+++ Request.java 13 Oct 2004 02:00:35 -0000 >@@ -2220,7 +2220,7 @@ > cookie.setMaxAge(-1); > String contextPath = null; > if (!connector.getEmptySessionPath() && (getContext() != null)) { >- contextPath = getContext().getPath(); >+ contextPath = getContext().getPath().replaceAll(" ", "%20"); > } > if ((contextPath != null) && (contextPath.length() > 0)) { > cookie.setPath(contextPath);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31090
:
12843
|
12844
|
12851
| 13058