Jeff Hammel created ZEPPELIN-4580:
-------------------------------------
Summary: extension of knoxJwtRealm does not work with subclasses
Key: ZEPPELIN-4580
URL: https://issues.apache.org/jira/browse/ZEPPELIN-4580
Project: Zeppelin
Issue Type: Bug
Components: zeppelin-server
Affects Versions: 0.8.2
Reporter: Jeff Hammel
Attachments: zeppelin_knox_instanceof.diff
When using a realm that extends knoxJwtRealm, this does not function with
Zeppelin's REST /api/login as the latter checks for the class name rather than
using instanceof:
[https://github.com/apache/zeppelin/blob/0b8423c62ae52f3716d4bb63d60762fee6910788/zeppelin-server/src/main/java/org/apache/zeppelin/rest/LoginRestApi.java#L173]
Instead, instanceof should be used.
A patch is attached that has been tested.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)