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

Email to requester uses wrong email address

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            farshidce 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.

            Show
            farshidce 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.
            Hide
            tdtappe 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.

            Show
            tdtappe 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.
            Hide
            ssplett 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

            Show
            ssplett 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
            Hide
            ssplett 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

            Show
            ssplett 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
            Hide
            salsa 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>".

            Show
            salsa 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>".
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            Hide
            dogfood 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
            Show
            dogfood 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: