You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/08/29 23:31:52 UTC

DO NOT REPLY [Bug 43242] New: - New HttpSession created in HttpServletRequest under IPv6

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43242>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43242

           Summary: New HttpSession created in HttpServletRequest under IPv6
           Product: Tomcat 5
           Version: 5.5.20
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:Coyote
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dbriere@aprisma.com


Our JNLP clients use PostMethod.execute to send and receive data to a 
particular servlet.  Customers can launch the JNLP client from the home page.  
If the home page is launched via browser with 
http://<somehostname>:8080/homepage  or
http://<someip>:8080/homepage

Everything works fine. The problem is when tomcat is running on a host with an 
IPv6 tunnel

So if a JNLP client was launched from a home page that was brought up like:

http://[2002:8a2a:f915::1]:8080/homepage

Then a new HttpSession will exist in the HttpServletRequest.  Below is a simple 
servlet each time its invoked via the JNLP clients PostMethod.execute, a new 
session ID will be printed if the client was launched via IPv6 address.

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 *  web.xml registrations:
 *
 * <servlet>
 *   <servlet-name>MyTestServlet</servlet-name>
 *   <servlet-class>
 *    com.aprisma.spectrum.app.web.servlet.MyTestServlet
 *   </servlet-class>
 *   <load-on-startup>3</load-on-startup>
 * </servlet>
 *
 * <servlet-mapping>
 *   <servlet-name>MyTestServlet</servlet-name>
 *   <url-pattern>/test/MyTestServlet</url-pattern>
 * </servlet-mapping>
 *
 */


public class MyTestServlet extends HttpServlet
{

    public void doPost( HttpServletRequest request,
                        HttpServletResponse response )
                            throws ServletException, IOException
    {
        System.out.println( request.getSession().getId() );
    }
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 43242] - New HttpSession created in HttpServletRequest under IPv6

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43242>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43242


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From markt@apache.org  2007-12-17 14:16 -------
This works for me with a simple JSP test case in Windows 2k3. I wonder if it is
a JNLP issue or something else?

There does not appear to be a Tomcat issue here. I suggest you follow this up on
the users list. My suggestion would be to using something like TcpMon (if it
supports ipv6) and monitor the traffic to see if it is a client or server issue.

The folks on the users list are usually pretty helpful.

If you do conclude it is a Tomcat issue, feel free to re-open this and include
the steps to reproduce.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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