-
Bug
-
Resolution: Fixed
-
Minor
-
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"
Assignee | Original: Martin Spielmann [ pingunaut ] | New: Bartosz Nowak [ dumam ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |