Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently CookieSigner throws an IllegalArgumentException if the cookie signature is invalid.
if (!MessageDigest.isEqual(originalSignature.getBytes(), currentSignature.getBytes())) { throw new IllegalArgumentException("Invalid sign, original = " + originalSignature + " current = " + currentSignature); }
CookieSigner is only used in the ThriftHttpServlet#getClientNameFromCookie and doesn't handle the IllegalArgumentException. It is only checking if the value from the cookie is null or not.
currValue = signer.verifyAndExtract(currValue); // Retrieve the user name, do the final validation step. if (currValue != null) {
This should be fixed to either:
a) Have CookieSigner not return an IllegalArgumentException
b) Improve ThriftHttpServlet to handle CookieSigner throwing an IllegalArgumentException
Attachments
Attachments
Issue Links
- relates to
-
HIVE-9710 HiveServer2 should support cookie based authentication, when using HTTP transport.
- Closed