Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3459

PropertiesLoginModule throws NPE when callbackHandler is null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.3, 4.0.0.M2, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      That CXF JAASLoginInterceptor calls JAAS with a null CallBackhandler if no credentials are found. This results in a LoginException wrapping a NPE which is a bit cryptic for users.

      I propose to check for null in PropertiesLoginModule and just not call the callBackHandler in this case. Then it will look like the user and password are null which result in a better exception.

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: