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

NPE on non existing SAML Attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • saml-plugin
    • None
    • Jenkins 2.387.3 (dockerized)
      SAML Plugin 4.403.v423b_3195a_9ec
    • 4.418.vdfa_7489a_b_a_2d

      On Manage Jenkins -> Configure global security -> Custom Attributes section I set an arbitrary SAML Attribute. If this attribute is not supplied with the response from Keycloak then I get the NPE attached bellow (And i get an evil jenkins error page, however the login happens after all). This scenario should be handled more gracefully. Maybe even just skipping that one attribute and check for the next.

      The NPE points to this line of code.

       

       

            ifernandezcalvo Ivan Fernandez Calvo
            tamas Tamas Mx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: