cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf git commit: Using equals instead of matches
Date Thu, 07 Apr 2016 10:51:23 GMT
Using equals instead of matches


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/5fc95af7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5fc95af7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5fc95af7

Branch: refs/heads/master
Commit: 5fc95af7f7f0d9ac232eed3dd80a574bc320fee8
Parents: 7cccdcf
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Apr 7 11:50:46 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Apr 7 11:51:09 2016 +0100

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/5fc95af7/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
index 457beae..1416dd4 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
@@ -134,7 +134,7 @@ public class OAuthRequestFilter extends AbstractAccessTokenValidator
       
         if (accessTokenV.getClientIpAddress() != null) {
             String remoteAddress = getMessageContext().getHttpServletRequest().getRemoteAddr();
-            if (remoteAddress == null || accessTokenV.getClientIpAddress().matches(remoteAddress))
{
+            if (remoteAddress == null || accessTokenV.getClientIpAddress().equals(remoteAddress))
{
                 String message = "Client IP Address is invalid";
                 LOG.warning(message);
                 throw ExceptionUtils.toForbiddenException(null, null);


Mime
View raw message