cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf git commit: Using equals instead of matches
Date Thu, 07 Apr 2016 11:25:34 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 3f4457435 -> 8cfbd97e0


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/c57a949a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c57a949a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c57a949a

Branch: refs/heads/3.1.x-fixes
Commit: c57a949a2eeff2152162cb3927e075b57480e89e
Parents: 3f44574
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:52:01 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/c57a949a/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