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 2018/04/19 13:45:15 UTC
[cxf] 01/02: Removing printStackTrace from STS code
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 93e2197a5ebcfd8780e39b1f0d62501f421352f9
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Apr 19 09:57:27 2018 +0100
Removing printStackTrace from STS code
(cherry picked from commit fd178bcf4805ca01d77afe07b70cfe93e1bc25c9)
# Conflicts:
# services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
---
.../java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java | 1 -
.../org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
index d668ca3..c262607 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
@@ -155,7 +155,6 @@ public class JWTTokenProvider implements TokenProvider {
LOG.fine("JWT Token successfully created");
return response;
} catch (Exception e) {
- e.printStackTrace();
LOG.log(Level.WARNING, "", e);
throw new STSException("Can't serialize JWT token", e, STSException.REQUEST_FAILED);
}
diff --git a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
index adcff6b..454f563 100644
--- a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
+++ b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
@@ -351,10 +351,7 @@ public class SAMLProviderActAsTest extends org.junit.Assert {
token = (Element)providerResponse.getToken();
assertion = new SamlAssertionWrapper(token);
Assert.assertEquals("service-A", assertion.getSubjectName());
-
- String tokenString = DOM2Writer.nodeToString(token);
- System.out.println(tokenString);
-
+
boolean foundBob = false;
boolean foundTechnical = false;
for (org.opensaml.saml.saml2.core.AttributeStatement attributeStatement
--
To stop receiving notification emails like this one, please contact
coheigea@apache.org.