diff --git a/service/src/java/org/apache/hive/service/CookieSigner.java b/service/src/java/org/apache/hive/service/CookieSigner.java index 49ef2c606a7c..867adc8fa267 100644 --- a/service/src/java/org/apache/hive/service/CookieSigner.java +++ b/service/src/java/org/apache/hive/service/CookieSigner.java @@ -76,10 +76,8 @@ public String verifyAndExtract(String signedStr) { String rawValue = signedStr.substring(0, index); String currentSignature = getSignature(rawValue); - LOG.debug("Signature generated for {} inside verify is {}", rawValue, currentSignature); if (!MessageDigest.isEqual(originalSignature.getBytes(), currentSignature.getBytes())) { - throw new IllegalArgumentException("Invalid sign, original = " + originalSignature + - " current = " + currentSignature); + throw new IllegalArgumentException("Invalid sign= " + originalSignature); } return rawValue; } diff --git a/service/src/test/org/apache/hive/service/TestCookieSigner.java b/service/src/test/org/apache/hive/service/TestCookieSigner.java index 54801d444003..a5a6454194de 100644 --- a/service/src/test/org/apache/hive/service/TestCookieSigner.java +++ b/service/src/test/org/apache/hive/service/TestCookieSigner.java @@ -70,7 +70,7 @@ public void testVerifyAndExtractInvalidSignature() { try { cs.verifyAndExtract(modifedSignedStr); } catch (IllegalArgumentException e) { - assertTrue(e.getMessage().startsWith("Invalid sign, original = ")); + assertTrue(e.getMessage().startsWith("Invalid sign= ")); return; } fail("Expected IllegalArgumentException checking signature");