tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schu...@apache.org
Subject svn commit: r1178979 - in /tomcat/tc7.0.x/trunk: java/org/apache/catalina/filters/RemoteAddrFilter.java webapps/docs/changelog.xml
Date Tue, 04 Oct 2011 22:06:00 GMT
Author: schultz
Date: Tue Oct  4 22:05:59 2011
New Revision: 1178979

URL: http://svn.apache.org/viewvc?rev=1178979&view=rev
Log:
Fixed bug #51956: RemoteAddrFilter uses remote host (not address) in doFilterEvent

Modified:
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java
    tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java?rev=1178979&r1=1178978&r2=1178979&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/RemoteAddrFilter.java Tue Oct  4
22:05:59 2011
@@ -89,7 +89,7 @@ public final class RemoteAddrFilter
     @Override
     public void doFilterEvent(CometEvent event, CometFilterChain chain)
             throws IOException, ServletException {
-        processCometEvent(event.getHttpServletRequest().getRemoteHost(),
+        processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
                 event, chain);        
     }
 

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1178979&r1=1178978&r2=1178979&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Oct  4 22:05:59 2011
@@ -60,6 +60,10 @@
         <bug>51910</bug>: Prevent NPE on connector stop if Comet applications
         are being used without the CometConnectionManagerValve. (markt)
       </fix>
+      <fix>
+        <bug>51956</bug>: RemoteAddrFilter used getRemoteHost instead of
+        getRemoteAddr when filtering Comet events. (schultz)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">



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


Mime
View raw message