Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3897 | major | always | 02-19-10 22:09 | 01-17-11 12:05 | |
|
|||||
Reporter: | ykim | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.6 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.15 | ||
|
|||||
Summary: | 0003897: resin doesn't parse cookie value that is space delimited | ||||
Description: |
We are migrating legacy application from websphere to resin. The application is using cookie value that is space delimited - let's say "A B C" With resin's servlet implementation, when you invoke getCookies() and retrieve the value, it only gets "A" and the remaining part of the value gets truncated. I don't recall seeing any restrictions on the format of a value. I'm adding a sample jsp code that simulates it in the additional information. |
||||
Steps To Reproduce: | |||||
Additional Information: |
<%@ page import="javax.servlet.http.*" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <script lang="javascript"> //document.cookie = 'mycookie' + "=" + escape('a b c'); document.cookie = 'mycookie' + "=" + 'a b c'; </script> <% Cookie[] cookies = request.getCookies(); out.println("cookie length = " + cookies.length); if (cookies != null) { for (int i = 0; i < cookies.length; i++) { String value = cookies[i].getValue(); out.println(cookies[i].getName() + " = " + value); } } String[] cookieData = StringUtils.split(cookies[1].getValue(), ' '); for (int i = 0; i < cookieData.length; i++ ) { out.println("cookie value = " + cookieData[i]); } %> |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|