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

User email suffixes are getting overwritten with the with the subversion repo UUID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Several users on the system can't get any build emails.

      The email keep getting set to "davidp@046000e8-c612-472f-bb51-fe359d1450d5" For certain users.

      • This only happens to users who have configs set, in $JENKINS_HOME/users/user-name.xml
      • The number at the end is the Subversion UUID.
      • Removing/deleting/modifying the user configs does not work.

      This is very similar to the https://issues.jenkins-ci.org/browse/JENKINS-11731, but only applies to some users.

        Attachments

          Issue Links

            Activity

            Hide
            slide_o_mix Alex Earl added a comment -

            Please try 2.20

            Show
            slide_o_mix Alex Earl added a comment - Please try 2.20
            Hide
            davidp_at_zoosk David Pattison added a comment -

            I have upgraded to Email-Ext 2.20. Still no luck

            Show
            davidp_at_zoosk David Pattison added a comment - I have upgraded to Email-Ext 2.20. Still no luck
            Hide
            slide_o_mix Alex Earl added a comment -

            Can you post a build log please?

            Show
            slide_o_mix Alex Earl added a comment - Can you post a build log please?
            Hide
            davidp_at_zoosk David Pattison added a comment -

            I created the simplest build i could
            checkouts svn
            executes shell command: "false"
            sends Email using Email-Ext

            Started by user davidp
            Building on master
            Checking out a fresh workspace because there's no workspace at /home/ccuser/.hudson/jobs/test/workspace
            Cleaning local Directory .
            Checking out https://s.zoosk.com/zoosk-tools/trunk/release
            <redacted>
            At revision 65162
            No emails were triggered.
            [workspace] $ /bin/sh -xe /var/lib/tomcat5.5/temp/hudson3722023358745622859.sh
            + false
            Build step 'Execute shell' marked build as failure
            Email was triggered for: Failure
            Sending email for trigger: Failure
            Sending email to: davidp@046000e8-c612-472f-bb51-fe359d1450d5
            Finished: FAILURE

            Show
            davidp_at_zoosk David Pattison added a comment - I created the simplest build i could checkouts svn executes shell command: "false" sends Email using Email-Ext Started by user davidp Building on master Checking out a fresh workspace because there's no workspace at /home/ccuser/.hudson/jobs/test/workspace Cleaning local Directory . Checking out https://s.zoosk.com/zoosk-tools/trunk/release <redacted> At revision 65162 No emails were triggered. [workspace] $ /bin/sh -xe /var/lib/tomcat5.5/temp/hudson3722023358745622859.sh + false Build step 'Execute shell' marked build as failure Email was triggered for: Failure Sending email for trigger: Failure Sending email to: davidp@046000e8-c612-472f-bb51-fe359d1450d5 Finished: FAILURE
            Hide
            slide_o_mix Alex Earl added a comment -

            Can you also post some screenshots of your config? I am assuming you have send to requester checked?

            Show
            slide_o_mix Alex Earl added a comment - Can you also post some screenshots of your config? I am assuming you have send to requester checked?
            Hide
            davidp_at_zoosk David Pattison added a comment -
            Show
            davidp_at_zoosk David Pattison added a comment - https://skitch.com/davidpattison/enbjs/test-config-jenkins sorry for the late-ish response
            Hide
            slide_o_mix Alex Earl added a comment -

            I'll try and add some additional logging information that can be controlled in the global config and get a version out so we can get to the bottom of this. I am guessing that it is happening because of the user email resolution.

            Show
            slide_o_mix Alex Earl added a comment - I'll try and add some additional logging information that can be controlled in the global config and get a version out so we can get to the bottom of this. I am guessing that it is happening because of the user email resolution.
            Hide
            slide_o_mix Alex Earl added a comment -

            When you say it only happens to users with configs set, can you post an example of the user config xml file?

            Show
            slide_o_mix Alex Earl added a comment - When you say it only happens to users with configs set, can you post an example of the user config xml file?
            Hide
            davidp_at_zoosk David Pattison added a comment -

            <?xml version='1.0' encoding='UTF-8'?>
            <user>
            <fullName>chandrav</fullName>
            <properties>
            <hudson.model.MyViewsProperty>
            <views>
            <hudson.model.AllView>
            <owner class="hudson.model.MyViewsProperty" reference="../../.."/>
            <name>All</name>
            <filterExecutors>false</filterExecutors>
            <filterQueue>false</filterQueue>
            <properties class="hudson.model.View$PropertyList"/>
            </hudson.model.AllView>
            </views>
            </hudson.model.MyViewsProperty>
            <jenkins.security.ApiTokenProperty>
            <apiToken>XXXX</apiToken>
            </jenkins.security.ApiTokenProperty>
            <hudson.plugins.ircbot.IrcUserProperty/>
            <hudson.tasks.Mailer_-UserProperty>
            <emailAddress>chandrav@046000e8-c612-472f-bb51-fe359d1450d5</emailAddress>
            </hudson.tasks.Mailer_-UserProperty>
            </properties>

            i can edit it/remove it and it will still come back

            Show
            davidp_at_zoosk David Pattison added a comment - <?xml version='1.0' encoding='UTF-8'?> <user> <fullName>chandrav</fullName> <properties> <hudson.model.MyViewsProperty> <views> <hudson.model.AllView> <owner class="hudson.model.MyViewsProperty" reference="../../.."/> <name>All</name> <filterExecutors>false</filterExecutors> <filterQueue>false</filterQueue> <properties class="hudson.model.View$PropertyList"/> </hudson.model.AllView> </views> </hudson.model.MyViewsProperty> <jenkins.security.ApiTokenProperty> <apiToken>XXXX</apiToken> </jenkins.security.ApiTokenProperty> <hudson.plugins.ircbot.IrcUserProperty/> <hudson.tasks.Mailer_-UserProperty> <emailAddress>chandrav@046000e8-c612-472f-bb51-fe359d1450d5</emailAddress> </hudson.tasks.Mailer_-UserProperty> </properties> i can edit it/remove it and it will still come back
            Hide
            slide_o_mix Alex Earl added a comment -

            Why is the emailAddress showing the SVN UID instead of a valid email address? The hudson.tasks.Mailer.UserProperty is used to resolve the email address.

            Show
            slide_o_mix Alex Earl added a comment - Why is the emailAddress showing the SVN UID instead of a valid email address? The hudson.tasks.Mailer.UserProperty is used to resolve the email address.
            Hide
            davidp_at_zoosk David Pattison added a comment -

            that is the bug

            i keep setting it to the correct value and it gets reverted to the svn uuid.

            Show
            davidp_at_zoosk David Pattison added a comment - that is the bug i keep setting it to the correct value and it gets reverted to the svn uuid.
            Hide
            slide_o_mix Alex Earl added a comment -

            The email-ext plugin does not UPDATE that property, it only uses it, so something else (probably the svn plugin) is updating it?

            Show
            slide_o_mix Alex Earl added a comment - The email-ext plugin does not UPDATE that property, it only uses it, so something else (probably the svn plugin) is updating it?
            Hide
            slide_o_mix Alex Earl added a comment -

            I'll try setting up an SVN repo and build to see what I can come up with. If you go into the user profile in the Jenkins UI and update the email address, does that work?

            Show
            slide_o_mix Alex Earl added a comment - I'll try setting up an SVN repo and build to see what I can come up with. If you go into the user profile in the Jenkins UI and update the email address, does that work?
            Hide
            davidp_at_zoosk David Pattison added a comment -

            You can update the user profile in jenkins. It will correctly save but on the next build it gets reverted.

            we are running a slightly older version of svn (server):

            svn, version 1.4.6 (r28521)
            compiled Mar 23 2011, 22:50:00

            Probably next week we will do a jenkins upgrade to 1.447.2 (currently 1.447.1) and svn plugin v1.42 (currently 1.40)

            My gut feeling it is it is a bug between the jenkins svn plugin and the version of svn we are using. We have a plan to upgrade to svn 1.7 in august/september.

            Thanks for looking into this!

            Show
            davidp_at_zoosk David Pattison added a comment - You can update the user profile in jenkins. It will correctly save but on the next build it gets reverted. we are running a slightly older version of svn (server): svn, version 1.4.6 (r28521) compiled Mar 23 2011, 22:50:00 Probably next week we will do a jenkins upgrade to 1.447.2 (currently 1.447.1) and svn plugin v1.42 (currently 1.40) My gut feeling it is it is a bug between the jenkins svn plugin and the version of svn we are using. We have a plan to upgrade to svn 1.7 in august/september. Thanks for looking into this!
            Hide
            slide_o_mix Alex Earl added a comment -

            Can you tell me if the value of DEFAULT_RECIPIENTS in the global config has just user names and not full email addresses? Also, do you have the default suffix value filled in in the global config?

            Show
            slide_o_mix Alex Earl added a comment - Can you tell me if the value of DEFAULT_RECIPIENTS in the global config has just user names and not full email addresses? Also, do you have the default suffix value filled in in the global config?
            Hide
            davidp_at_zoosk David Pattison added a comment -

            DEFAULT_RECIPIENTS is empty and the default user e-mail suffis is "@zoosk.com"

            Show
            davidp_at_zoosk David Pattison added a comment - DEFAULT_RECIPIENTS is empty and the default user e-mail suffis is "@zoosk.com"
            Hide
            slide_o_mix Alex Earl added a comment -

            Can you also post your global config?

            Show
            slide_o_mix Alex Earl added a comment - Can you also post your global config?
            Hide
            slide_o_mix Alex Earl added a comment -

            Was this resolved when you upgraded?

            Show
            slide_o_mix Alex Earl added a comment - Was this resolved when you upgraded?
            Hide
            davidp_at_zoosk David Pattison added a comment -

            Just upgraded and it is still active

            Show
            davidp_at_zoosk David Pattison added a comment - Just upgraded and it is still active
            Hide
            slide_o_mix Alex Earl added a comment -

            I don't think this has anything to do with the email-ext plugin since somehow the email address is getting overwritten, so I don't know how to help you debug the problem.

            Show
            slide_o_mix Alex Earl added a comment - I don't think this has anything to do with the email-ext plugin since somehow the email address is getting overwritten, so I don't know how to help you debug the problem.
            Show
            slide_o_mix Alex Earl added a comment - Can you look at this and let me know if you use git-svn? http://jenkins.361315.n4.nabble.com/Problems-with-E-mail-notification-Recipient-host-is-svn-uuid-instead-of-Default-user-e-mail-suffix-td3449232.html
            Hide
            slide_o_mix Alex Earl added a comment -
            Show
            slide_o_mix Alex Earl added a comment - I think this also relates. http://hustoknow.blogspot.com/2011/01/hudson-git-plug-in-issues.html
            Hide
            davidp_at_zoosk David Pattison added a comment -

            That sounds exactly like the problem.

            I'll try uninstalling the git plugin to see if that stops the problem

            Show
            davidp_at_zoosk David Pattison added a comment - That sounds exactly like the problem. I'll try uninstalling the git plugin to see if that stops the problem
            Hide
            davidp_at_zoosk David Pattison added a comment -

            i disabled the git plugin and now it works!!!

            Thanks!

            Show
            davidp_at_zoosk David Pattison added a comment - i disabled the git plugin and now it works!!! Thanks!

              People

              Assignee:
              slide_o_mix Alex Earl
              Reporter:
              davidp_at_zoosk David Pattison
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: