Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59840

NullPointerException when activating the plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kerberos-sso-plugin
    • None
    • Jenkins 2.176.4
      kerberos-sso 1.6
    • 1.7

      While updating from kerberos-sso 1.4 to 1.6 we encountered a NPE when activating the plugin:

      java.lang.NullPointerException
      at org.codelibs.spnego.SpnegoFilterConfig.doClientModule(SpnegoFilterConfig.java:179)
      at org.codelibs.spnego.SpnegoFilterConfig.<init>(SpnegoFilterConfig.java:138)

      Version 1.5 works, and after git bisecting 1.5..1.6 I found the problematic commit to be 9a3cffe: "Add support for JCasC"

      Looking at SpnegoFilterConfig.java:179 (specified as v1.0.1 in kerberos-sso's pom)

      // we only expect one entry
      final AppConfigurationEntry entry = config.getAppConfigurationEntry(moduleName)[0];

      There is no changelog entry for 1.6 on the wiki, and I can not find a difference between the provided login.conf and ours, besides principal and keytab filename.

       

        1. assert.txt
          4 kB
          Stefan
        2. jenkins.yaml
          0.4 kB
          Stefan
        3. kerberos.conf
          0.9 kB
          Stefan
        4. kerberos-sso.xml
          0.8 kB
          Stefan
        5. stacktrace.txt
          9 kB
          Stefan

            olivergondza Oliver Gondža
            stefan_kb Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: