tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7789] New: - JSP Cookie Read/Write Fails With DNS Names
Date Sat, 06 Apr 2002 11:23:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7789

JSP Cookie Read/Write Fails With DNS Names

           Summary: JSP Cookie Read/Write Fails With DNS Names
           Product: Tomcat 3
           Version: 3.3.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: reachmike@hotpop.com


If you use a URL such as...

http://localhost:8080/scripts/cookies/
-or-

http://myserver:8080/scripts/cookies/

...instead 
of...

http://127.0.0.1:8080/scripts/cookies/

...you will find that normal 
read/write of cookie operations will fail. This problem is also carried into Tomcat 4 too,
by the 
way, and I have filed that bug report too.

Steps to reproduce:
1. Use only Tomcat, alone, not 
in unison with the Apache web server.

2. Create a directory structure under ROOT with the path 
/scripts/cookies, which the following files should be placed in.

3. Create an index.html 
with a hyperlink to begin the example. The
hyperlink should go to write_cookie.jsp.

4. 
write_cookie.jsp should create a new cookie "fruit" with value "apple". It should follow with
a 
hyperlink which goes to read_cookie.jsp.

5. read_cookie.jsp should perform a standard 
dump of the full cookie array. It should be preceeded with a test to see if the array is null,
then 
report no cookies found if this is true.

6. Use a variety of browsers and run the two URL tests. I 
used IE 5.5 and Opera 6.01 in my tests and got the same results. I cleared my full cache on
both, shut 
down the browsers, and tried again with the same results. I turned off ZoneAlarm Pro and retried.

Same result.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message