Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-4580

extension of knoxJwtRealm does not work with subclasses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.2
    • 0.8.3, 0.9.0
    • zeppelin-server
    • None

    Description

      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.

      Attachments

        1. zeppelin_knox_instanceof.diff
          1.0 kB
          Jeff Hammel

        Activity

          People

            jhammel Jeff Hammel
            jhammel Jeff Hammel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h