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:33:09 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes f64ee3c26 -> ad60c6768


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

Branch: refs/heads/3.0.x-fixes
Commit: 258e846daf2d0abec723f5ce2e0490fd31e5c0af
Parents: f64ee3c
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 12:25:47 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/258e846d/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 3792ea5..8929bd6 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
@@ -121,7 +121,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