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 2010/03/17 00:13:02 UTC

DO NOT REPLY [Bug 48925] New: ((ServletRequest) request).getLocalAddr() returns "null"

https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

           Summary: ((ServletRequest) request).getLocalAddr() returns
                    "null"
           Product: Tomcat Connectors
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_jk
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: Paul@UnnService.com


The getLocalAddr() method returns null when using mod_jk.


I've tried with both mod_jk version 1.2.28 and 1.2.30.

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

--- Comment #2 from andrea dal farra <ad...@gmail.com> 2010-11-05 16:24:07 EDT ---
Created an attachment (id=26262)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26262)
simple servlet to test getLocalAddr()

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

--- Comment #5 from Rainer Jung <ra...@kippdata.de> 2010-11-06 11:44:38 EDT ---
I proposed a fix for Tomcat 6. It is available at

http://people.apache.org/~rjung/patches/bz48925-tc6-ajp-localaddr.patch

It only happens for the default implementation of the AJP connector. If you
switch to protocol="org.apache.coyote.ajp.AjpProtocol" in the connector
configuration, it should be fine. That's the implementation used by Tomcat 7.

Note also, that our implementation of localAddr() will simply return the same
as localName(), so you can also switch to that method.

Regards,

Rainer

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

Paul Sipot <Pa...@UnnService.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Paul@UnnService.com

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

andrea dal farra <ad...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from andrea dal farra <ad...@gmail.com> 2010-11-05 16:27:43 EDT ---
Hi Steven,

I've encountered the same problem on iis 7.0 with isapi_Redirect 1.2.31 and i
was able to reproduce the issue with mod_jk 1.2.30 with apache 2.2 both in
tomcata 5.5 and 6.0.
I'm not familiar with the test case used with mod_jk so i write a simple
servlet that echoes the getLocalAddr value.
Is that enough or you need more?

thanks


andrea

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

andrea dal farra <ad...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adalfa@gmail.com

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|unspecified                 |6.0.29
          Component|mod_jk                      |Connectors
           Platform|PC                          |All
         Resolution|                            |FIXED
   Target Milestone|---                         |default
            Product|Tomcat Connectors           |Tomcat 6
         OS/Version|Linux                       |All

--- Comment #6 from Rainer Jung <ra...@kippdata.de> 2010-11-10 14:05:03 EST ---
Patch applied in r1033643, will be part of Tomcat 6.0.30.
No fix needed and no workaround available for mod_jk.

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

Tim Whittington <ti...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

--- Comment #4 from andrea dal farra <ad...@gmail.com> 2010-11-06 09:57:03 EDT ---
I've tested mod_jk 1.2.30 with Jetty 7.2 and tomcat 7.0.4 and the problem does
not occur anymore.
in tomcat-6.0.29 i still have the issue

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

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


DO NOT REPLY [Bug 48925] ((ServletRequest) request).getLocalAddr() returns "null"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48925

--- Comment #1 from Steven Yates <sy...@stevendyates.com> 2010-05-21 02:13:27 EDT ---
Paul, can you reproduce this with a test case? If so please attach and I will
be happy to take a look at it for you.

RGS SY

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

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