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

Git plugin 3.6.4 error with empty author email in GitChangeSet.findOrCreateUser()

    XMLWordPrintable

    Details

    • Similar Issues:

      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

        Attachments

          Activity

          bjorng Björn Gustafsson created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          markewaite Mark Waite made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          markewaite Mark Waite made changes -
          Assignee Mark Waite [ markewaite ]
          markewaite Mark Waite made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              bjorng Björn Gustafsson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: