NPE on non existing SAML Attribute

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: saml-plugin
    • None
    • Environment:
      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.

       

       

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

              Created:
              Updated:
              Resolved: