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 2015/02/02 18:12:41 UTC
cxf git commit: [CXF-6233] - STS client only sends AppliesTo on first
RST call
Repository: cxf
Updated Branches:
refs/heads/master ade3480bf -> 27e877346
[CXF-6233] - STS client only sends AppliesTo on first RST call
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/27e87734
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/27e87734
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/27e87734
Branch: refs/heads/master
Commit: 27e87734613a3e0f6e6c306ddb5738bb9fd442ab
Parents: ade3480
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Feb 2 17:12:04 2015 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Feb 2 17:12:26 2015 +0000
----------------------------------------------------------------------
.../interceptors/IssuedTokenInterceptorProvider.java | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/27e87734/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/IssuedTokenInterceptorProvider.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/IssuedTokenInterceptorProvider.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/IssuedTokenInterceptorProvider.java
index 5b63621..20249be 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/IssuedTokenInterceptorProvider.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/IssuedTokenInterceptorProvider.java
@@ -440,7 +440,7 @@ public class IssuedTokenInterceptorProvider extends AbstractPolicyInterceptorPro
client.setMessage(message);
- if (maps != null) {
+ if (maps != null && maps.getNamespaceURI() != null) {
client.setAddressingNamespace(maps.getNamespaceURI());
}
@@ -473,11 +473,6 @@ public class IssuedTokenInterceptorProvider extends AbstractPolicyInterceptorPro
} else {
throw new Fault(ex);
}
- } finally {
- client.setTrust((Trust10)null);
- client.setTrust((Trust13)null);
- client.setTemplate(null);
- client.setAddressingNamespace(null);
}
}
}
@@ -537,11 +532,6 @@ public class IssuedTokenInterceptorProvider extends AbstractPolicyInterceptorPro
throw e;
} catch (Exception e) {
throw new Fault(e);
- } finally {
- client.setTrust((Trust10)null);
- client.setTrust((Trust13)null);
- client.setTemplate(null);
- client.setAddressingNamespace(null);
}
}
}