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 16:45:39 UTC
[cxf] branch master updated: CXF-8076 - Minor tweak
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 1a63729 CXF-8076 - Minor tweak
1a63729 is described below
commit 1a63729aacd78c87c1fd6c1a7d7b7eddab856c46
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Jul 15 17:45:20 2019 +0100
CXF-8076 - Minor tweak
---
.../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 895585e..34540bd 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);
}
}