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

Crowd2 plugin crashes on loading JCasC jenkins.yaml with undefined "group"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • crowd2-plugin
    • Crowd2-plugin 3.1.2, Jenkins 2.350, JCasC Version 1429.v09b_044a_c93de

      I configured Crowd2 authentication successfully and saved jenkins.yaml. Then I tried loading that file back (with minor changes to load passwords from files). Jenkins crashed, the logs indicated that the crash happened in CrowdSecurityRealm.java, line 203. In crowd2-plugin version 3.1.2 that line is:

      this.group = group.trim();

      There was no "group" field in jenkins.yaml. Once I added

      group: ""

      under jenkins/securityRealm/crowd, the config loading started working.

      Please make the code robust to the case when "group" is empty, e.g. convert null to an empty string.

          [JENKINS-68708] Crowd2 plugin crashes on loading JCasC jenkins.yaml with undefined "group"

          Pavel Roskin created issue -
          Bartosz Nowak made changes -
          Assignee Original: Martin Spielmann [ pingunaut ] New: Bartosz Nowak [ dumam ]
          Bartosz Nowak made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Bartosz Nowak made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Bartosz Nowak made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Bartosz Nowak made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            dumam Bartosz Nowak
            proski Pavel Roskin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: