Skip to content

Commit fbd95b1

Browse files
srowendongjoon-hyun
authored andcommitted
[MINOR][HIVE] Pick up HIVE-22708 HTTP transport fix
Pick up the HTTP fix from https://issues.apache.org/jira/browse/HIVE-22708 This is a small but important fix to digest handling we should pick up from Hive. No. Existing tests Closes #27273 from srowen/Hive22708. Authored-by: Sean Owen <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 9da2bc4 commit fbd95b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive-thriftserver/src/main/java/org/apache/hive/service/CookieSigner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public String verifyAndExtract(String signedStr) {
8181
if (LOG.isDebugEnabled()) {
8282
LOG.debug("Signature generated for " + rawValue + " inside verify is " + currentSignature);
8383
}
84-
if (!originalSignature.equals(currentSignature)) {
84+
if (!MessageDigest.isEqual(originalSignature.getBytes(), currentSignature.getBytes())) {
8585
throw new IllegalArgumentException("Invalid sign, original = " + originalSignature +
8686
" current = " + currentSignature);
8787
}

0 commit comments

Comments
 (0)