You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2019/03/14 09:52:43 UTC
[lucene-solr] branch branch_8x updated: SOLR-12121: Remove a
System.out.println in JWTAuthPlugin
This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new e68d16f SOLR-12121: Remove a System.out.println in JWTAuthPlugin
e68d16f is described below
commit e68d16f32c6721401a628056b011156918377340
Author: Jan Høydahl <ja...@apache.org>
AuthorDate: Thu Mar 14 10:48:09 2019 +0100
SOLR-12121: Remove a System.out.println in JWTAuthPlugin
(cherry picked from commit a18aa2118bf53bed0bf512820e066a2fa9f018b1)
---
solr/core/src/java/org/apache/solr/security/JWTAuthPlugin.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/security/JWTAuthPlugin.java b/solr/core/src/java/org/apache/solr/security/JWTAuthPlugin.java
index 692ce75..1808631 100644
--- a/solr/core/src/java/org/apache/solr/security/JWTAuthPlugin.java
+++ b/solr/core/src/java/org/apache/solr/security/JWTAuthPlugin.java
@@ -429,7 +429,6 @@ public class JWTAuthPlugin extends AuthenticationPlugin implements SpecProvider,
}
} catch (InvalidJwtException e) {
// Whether or not the JWT has expired being one common reason for invalidity
- System.out.println("Exception is " + e.getClass().getName() + ", " + e.getMessage() + ", code=" + e.getErrorDetails().get(0).getErrorCode());
if (e.hasExpired()) {
return new JWTAuthenticationResponse(AuthCode.JWT_EXPIRED, "Authentication failed due to expired JWT token. Expired at " + e.getJwtContext().getJwtClaims().getExpirationTime());
}