• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Windows

      With Jenkins 1.403 and email-ext 2.13:
      If I log in to Jenkins and manually start a build then after successful build Jenkins tries to notify me by email but with a wrong email address. Obviously my real name (plus domain) is used instead of my email address.

          [JENKINS-9160] Email to requester uses wrong email address

          farshidce added a comment -

          Hi,

          can you provide more info on this bug. for example : did this happen after you upgrade from earlier version?
          or was the field blank and it did email you ?
          a screenshot would help.

          Thanks.

          farshidce added a comment - Hi, can you provide more info on this bug. for example : did this happen after you upgrade from earlier version? or was the field blank and it did email you ? a screenshot would help. Thanks.

          Heiko Tappe added a comment - - edited

          I upgraded from Jenkins 1.400 to 1.403 recently. And I'd say, though I am not 100% sure, that it worked before. I attached a screenshot with my configuration.

          Heiko Tappe added a comment - - edited I upgraded from Jenkins 1.400 to 1.403 recently. And I'd say, though I am not 100% sure, that it worked before. I attached a screenshot with my configuration.

          ssplett added a comment - - edited

          Hello, I've encountered the same problem. Here is an example what happens:

          I have a user with

          • the real name Max Mustermann
          • the user id mmustermann
          • the email address max.mmann@example.de
          • the default email extention is configured as example.com

          When Max starts a job that has the "Send To Requester" option activated, an email will be sent to "Max" and to "Mustermann@example.com" instead of "max.mmann@example.de"

          I'll try to find a timeslot to downgrade to version 2.12 and test if the problem can bee seen there too. But I don't know if I can find such a timeslot in the next few days...

          Edit: Using Jenkins 1.404

          ssplett added a comment - - edited Hello, I've encountered the same problem. Here is an example what happens: I have a user with the real name Max Mustermann the user id mmustermann the email address max.mmann@example.de the default email extention is configured as example.com When Max starts a job that has the "Send To Requester" option activated, an email will be sent to " Max " and to " Mustermann@example.com " instead of " max.mmann@example.de " I'll try to find a timeslot to downgrade to version 2.12 and test if the problem can bee seen there too. But I don't know if I can find such a timeslot in the next few days... Edit: Using Jenkins 1.404

          ssplett added a comment -

          Here is the console log of a job that shows this problem:

          Gestartet durch Benutzer mmustermann
          Baue auf Master
          No emails were triggered.
          //Doing the job...
          Email was triggered for: Success
          Sending email for trigger: Success
          Sending email to: user.from.global.list@example.de Max Mustermann@example.com
          Notifying upstream projects of job completion
          Finished: SUCCESS

          I also manged to get a timeslot for downgrading to version 2.12: same problem here

          ssplett added a comment - Here is the console log of a job that shows this problem: Gestartet durch Benutzer mmustermann Baue auf Master No emails were triggered. //Doing the job... Email was triggered for: Success Sending email for trigger: Success Sending email to: user.from.global.list@example.de Max Mustermann@example.com Notifying upstream projects of job completion Finished: SUCCESS I also manged to get a timeslot for downgrading to version 2.12: same problem here

          Sami Salonen added a comment -

          I can reproduce this problem (Jenkins 1.425). I created another bug report about a broken link in case the user name is modified (JENKINS-10698). That bug is present without email-ext plugin, but otherwise these seem to be closely related to user name.

          Email sending to requester works if "Your name" field in the user data is not modified from its default value (user ID). Plugin finds the correct email address from user data.

          Email was triggered for: Success
          Sending email for trigger: Success
          Sending email to: <correct email address>
          Finished: SUCCESS
          

          Emailing requester fails if "Your name" field in user data is changed e.g. to "John Smith". Plugin can no longer find email address from user data.

          Email was triggered for: Success
          Sending email for trigger: Success
          Failed to send e-mail to John Smith because no e-mail address is known, and no default e-mail domain is configured
          An attempt to send an e-mail to empty list of recipients, ignored.
          Finished: SUCCESS
          

          I had not defined "Default user e-mail suffix" above as our email addresses are of form <first-name>.<last-name>@company.com, not <user-id>@company.com. Defining suffix would result into an attempt to send two emails, one for "John", another for "Smith@<suffix>".

          Sami Salonen added a comment - I can reproduce this problem (Jenkins 1.425). I created another bug report about a broken link in case the user name is modified ( JENKINS-10698 ). That bug is present without email-ext plugin, but otherwise these seem to be closely related to user name. Email sending to requester works if "Your name" field in the user data is not modified from its default value (user ID). Plugin finds the correct email address from user data. Email was triggered for : Success Sending email for trigger: Success Sending email to: <correct email address> Finished: SUCCESS Emailing requester fails if "Your name" field in user data is changed e.g. to "John Smith". Plugin can no longer find email address from user data. Email was triggered for : Success Sending email for trigger: Success Failed to send e-mail to John Smith because no e-mail address is known, and no default e-mail domain is configured An attempt to send an e-mail to empty list of recipients, ignored. Finished: SUCCESS I had not defined "Default user e-mail suffix" above as our email addresses are of form <first-name>.<last-name>@company.com, not <user-id>@company.com. Defining suffix would result into an attempt to send two emails, one for "John", another for "Smith@<suffix>".

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          pom.xml
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/431bf01b99e13c9d6ebf54748cf563fb9331cacc
          Log:
          [FIXED JENKINS-9160] get user from user id instead of full name.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: pom.xml src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/431bf01b99e13c9d6ebf54748cf563fb9331cacc Log: [FIXED JENKINS-9160] get user from user id instead of full name.

          dogfood added a comment -

          Integrated in plugins_email-ext #75
          [FIXED JENKINS-9160] get user from user id instead of full name.

          Seiji Sogabe :
          Files :

          • src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          • src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          • pom.xml

          dogfood added a comment - Integrated in plugins_email-ext #75 [FIXED JENKINS-9160] get user from user id instead of full name. Seiji Sogabe : Files : src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java pom.xml

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/b6304d801147aba612c6a9f64769121e420be57b
          Log:
          Fixed JENKINS-9160 for the legacy UserCause and fixed several bugs in the previous commit

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java http://jenkins-ci.org/commit/email-ext-plugin/b6304d801147aba612c6a9f64769121e420be57b Log: Fixed JENKINS-9160 for the legacy UserCause and fixed several bugs in the previous commit

            sogabe sogabe
            tdtappe Heiko Tappe
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: