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

Email-adresses is not fetched in correct format

      If you connect jenkins with Crowd (SSO) User profiles in Jenkins users get emails like "firstname lastname (firstname.lastname@domain.com)" instead of just "firstname.lastname@domain.com"

      ------------------------------------------------------------------

      Adding recipients from project recipient list
      {{ Collecting change authors...}}
      {{ build: 3}}
      {{ adding author: Firstname Lastname (firstname.lastname)}}
      Not sending mail to user firstname.lastname@domain.com with no permission to view JobXYU ยป feature/XY-53 #3Adding Firstname Lastname (firstname.lastname@domain.com) with address Firstname Lastname (firstname.lastname@domain.com)
      Analyzing: Firstname,Lastname,(firstname.lastname@domain.com)
      Looking for: Firstname
      {{ starting at: 0}}
      {{ firstFoundIdx: 0}}
      {{ firstFoundIdx-substring: Firstname,Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Looking for: Lastname
      {{ starting at: 9}}
      {{ firstFoundIdx: 9}}
      {{ firstFoundIdx-substring: Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Analyzing: Firstname,Lastname,(firstname.lastname@domain.com)
      Looking for: Firstname
      {{ starting at: 0}}
      {{ firstFoundIdx: 0}}
      {{ firstFoundIdx-substring: Firstname,Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Looking for: Lastname
      {{ starting at: 9}}
      {{ firstFoundIdx: 9}}
      {{ firstFoundIdx-substring: Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Analyzing: Firstname,Lastname,(firstname.lastname@domain.com)
      Looking for: Firstname
      {{ starting at: 0}}
      {{ firstFoundIdx: 0}}
      {{ firstFoundIdx-substring: Firstname,Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Looking for: Lastname
      {{ starting at: 9}}
      {{ firstFoundIdx: 9}}
      {{ firstFoundIdx-substring: Lastname,(firstname.lastname@domain.com)}}
      {{ => found type: 0}}
      Adding recipients from trigger recipient list
      Successfully created MimeMessage
      Sending email to: Firstname firstname.lastname@domain.com
      Successfully sent to the following addresses: firstname.lastname@domain.com
      Error sending to the following INVALID addresses: Firstname

      ------------------------------------------------------------------

          [JENKINS-53677] Email-adresses is not fetched in correct format

          Alex Earl added a comment -

          I think this issue is in the Crowd 2 Plugin and how it resolves users to email addresses.

          Alex Earl added a comment - I think this issue is in the Crowd 2 Plugin and how it resolves users to email addresses.

          Benjamin Brummer added a comment - - edited

          I removed all users today from Jenkins. The new created Users now have correct e-mail-adresses. But the Full Name is like described in JENKINS-62291.

          • Enabled: Debug Mode
          • Disabled: Allow sending to unregistered users

          Let's see how E-Mails are now handled...

          ...and i configured the Git Plugin to take the commiter email instead of the name to map to users from crowd. So i guess all problems are solved. But i will report back.

          Benjamin Brummer added a comment - - edited I removed all users today from Jenkins. The new created Users now have correct e-mail-adresses. But the Full Name is like described in JENKINS-62291 . Enabled: Debug Mode Disabled: Allow sending to unregistered users Let's see how E-Mails are now handled... ...and i configured the Git Plugin to take the commiter email instead of the name to map to users from crowd. So i guess all problems are solved. But i will report back.

          Bartosz Nowak added a comment -

          Hi
          Could you check this PR if this fixing those issues?
          https://github.com/jenkinsci/crowd2-plugin/pull/66
           
          In PR checks you can find incremental version of plugin which could be installed manually.
          Please test it first on DEV env. Mostly, because I'm low at time resources and I'm not always able to test everything.

          Bartosz Nowak added a comment - Hi Could you check this PR if this fixing those issues? https://github.com/jenkinsci/crowd2-plugin/pull/66   In PR checks you can find incremental version of plugin which could be installed manually. Please test it first on DEV env. Mostly, because I'm low at time resources and I'm not always able to test everything.

          Bartosz Nowak added a comment -

          Please reopen this if you still see a problem

          Bartosz Nowak added a comment - Please reopen this if you still see a problem

            dumam Bartosz Nowak
            benbrummer Benjamin Brummer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: