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

form validation on the sysadmin e-mail address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mailer-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I have 2 addresses specified in the "Email Notifications Recipients" field on the project "Configure"
      screen. As the comment below the field says, I have space separated the addresses. At the end of a
      build, however, I get his exception in the log:

      javax.mail.internet.AddressException: Illegal whitespace in address in string ``foo@bar.com
      baz@bar.com''
      at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:926)
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:819)
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:555)
      at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:91)
      at hudson.tasks.MailSender.createEmptyMail(MailSender.java:238)
      at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:114)
      at hudson.tasks.MailSender.getMail(MailSender.java:104)
      at hudson.tasks.MailSender.execute(MailSender.java:64)
      at hudson.tasks.Mailer.perform(Mailer.java:54)
      at hudson.model.Build$RunnerImpl.post(Build.java:135)
      at hudson.model.Run.run(Run.java:562)
      at hudson.model.Build.run(Build.java:99)
      at hudson.model.Executor.run(Executor.java:61)

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          The stack trace suggests that you have two e-mail addresses set as the system
          admin e-mail address (which is set at http://yourhost/hudson/configure), not in
          the job configuration (at http://yourhost/hudson/job/something/configure).

          The former doesn't allow multiple addresses, the latter does. Please confirm.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - The stack trace suggests that you have two e-mail addresses set as the system admin e-mail address (which is set at http://yourhost/hudson/configure ), not in the job configuration (at http://yourhost/hudson/job/something/configure ). The former doesn't allow multiple addresses, the latter does. Please confirm.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          The system administrator e-mail address should have the form validation.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - The system administrator e-mail address should have the form validation.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Form validation added in 1.98.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Form validation added in 1.98.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nidaley nidaley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: