Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
We have a committer who set his email address to empty for some reason, and now all our builds fail on the project. The stack trace suggests that a patch prior to line 365 of GitChangeSet might fix the problem.
public User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean createAccountBasedOnEmail) {
User user;
if (csAuthor == null) {
return User.getUnknown();
}
if (createAccountBasedOnEmail) {
if (csAuthorEmail == null || "".equals(csAuthorEmail)) { // new code block
return User.getUnknown();
}
user = User.get(csAuthorEmail, false); // line 365
Here is the relevant part of the stack trace:
23:54:35 FATAL: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user ; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor*23:54:35* java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor*23:54:35* at org.acegisecurity.userdetails.User.<init>(User.java:127)
...
23:54:35 at hudson.model.User.get(User.java:415)
23:54:35 at hudson.model.User.get(User.java:384)
23:54:35 at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:365)
23:54:35 at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:452)
23:54:35 at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
23:54:35 at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
23:54:35 at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93)