You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2019/07/15 21:38:38 UTC

[cxf] 02/04: CXF-8076 - Minor tweak

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 2b604e5dfc7505d407a0e356f70a890c14a12dac
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Jul 15 17:45:20 2019 +0100

    CXF-8076 - Minor tweak
    
    (cherry picked from commit 1a63729aacd78c87c1fd6c1a7d7b7eddab856c46)
---
 .../src/main/java/org/apache/cxf/ws/security/trust/STSUtils.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSUtils.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSUtils.java
index c8d51c9..e3a7244 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSUtils.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSUtils.java
@@ -186,9 +186,8 @@ public final class STSUtils {
 
         if (checkForRecursiveCall) {
             EndpointInfo endpointInfo = message.getExchange().getEndpoint().getEndpointInfo();
-            if ((endpointInfo.getName().equals(client.getEndpointQName())
-                && endpointInfo.getService().getName().equals(client.getServiceQName()))
-                || client.getLocation() != null && client.getLocation().equals(endpointInfo.getAddress())) {
+            if (endpointInfo.getName().equals(client.getEndpointQName())
+                && endpointInfo.getService().getName().equals(client.getServiceQName())) {
                 throw new TrustException("ISSUED_TOKEN_POLICY_ERR", LOG);
             }
         }