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

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • None

    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

            davidp_at_zoosk David Pattison created issue -
            slide_o_mix Alex Earl added a comment -

            Please try 2.20

            slide_o_mix Alex Earl added a comment - Please try 2.20

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

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

            Can you post a build log please?

            slide_o_mix Alex Earl added a comment - Can you post a build log please?
            slide_o_mix Alex Earl made changes -
            Field Original Value New Value
            Assignee Slide-O-Mix [ slide_o_mix ]

            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

            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
            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?

            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?
            davidp_at_zoosk David Pattison added a comment - https://skitch.com/davidpattison/enbjs/test-config-jenkins sorry for the late-ish response
            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.

            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.
            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?

            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?

            <?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

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

            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.

            that is the bug

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

            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.
            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?

            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?
            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?

            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?

            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!

            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!
            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?

            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?

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

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

            Can you also post your global config?

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

            Was this resolved when you upgraded?

            slide_o_mix Alex Earl added a comment - Was this resolved when you upgraded?

            Just upgraded and it is still active

            davidp_at_zoosk David Pattison added a comment - Just upgraded and it is still active
            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.

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

            That sounds exactly like the problem.

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

            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
            slide_o_mix Alex Earl made changes -
            Link This issue duplicates JENKINS-7156 [ JENKINS-7156 ]
            slide_o_mix Alex Earl made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

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

            Thanks!

            davidp_at_zoosk David Pattison added a comment - i disabled the git plugin and now it works!!! Thanks!
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 144182 ] JNJira + In-Review [ 190953 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: