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

Not sending mail to user with permission to view

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • email-ext-plugin
    • None
    • Jenkins LTS 2.46.1, EmailExtPlugin 2.57.1, role based matrix used

      After the latest update with the security patch, no mails sended anymore to "requester" of a job.

      The error message in job console looks like this:
      Not sending mail to user user@mail.com with no permission to view currentJob
      When setting the suggested property 

      -Dhudson.tasks.MailSender.SEND_TO_USERS_WITHOUT_READ=true

      it works.

       

      The user has overall read permission (matrix based security setup) and for the conrete job the permission:

      Job: View,Discover,Read,Workspace

      Run: Update

      The user has an account (if I click on the user which started the job .. also belongs to this job (can seen in the user view)) and the mail address is correct.

      What permissions or settings are required to avoid this problem? We do not like to have this system property enabled.

      Thanks for the great plugin and support!

      Regards,

      • Thomas

          [JENKINS-43386] Not sending mail to user with permission to view

          Thomas Wabner created issue -

          Thomas Wabner added a comment -

          seems this issue is a bit related to JENKINS-43268 .. but also different in error message and setup

          Thomas Wabner added a comment - seems this issue is a bit related to  JENKINS-43268 .. but also different in error message and setup
          Thomas Wabner made changes -
          Link New: This issue is related to JENKINS-43268 [ JENKINS-43268 ]

          same issue here, We use the Github OAuth Plugin

          https://wiki.jenkins-ci.org/display/JENKINS/GitHub+OAuth+Plugin

          Ebrahim Moshaya added a comment - same issue here, We use the Github OAuth Plugin https://wiki.jenkins-ci.org/display/JENKINS/GitHub+OAuth+Plugin

          Jesse Glick added a comment -

          Very likely an issue in git not email-ext, like JENKINS-9016 perhaps.

          Jesse Glick added a comment - Very likely an issue in  git not email-ext , like  JENKINS-9016 perhaps.
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-9016 [ JENKINS-9016 ]
          Victor Martinez made changes -
          Link New: This issue is duplicated by JENKINS-46292 [ JENKINS-46292 ]
          Łukasz Bednarczyk made changes -
          Summary Original: Not sending mail to user with no permission to view New: Not sending mail to user with permission to view

          Issue reproduced here, also using Github OAuth Plugin.

          It seems it is not really related to the email-ext plugin, since it happens with the mailer plugin too.

          Fixed the task summary which suggested that the user without read permission is denied access, whereas the user does have the permission and is denied anyway.

           

          Łukasz Bednarczyk added a comment - Issue reproduced here, also using Github OAuth Plugin. It seems it is not really related to the email-ext plugin, since it happens with the mailer plugin too. Fixed the task summary which suggested that the user without read permission is denied access, whereas the user does have the permission and is denied anyway.  

          Todd B added a comment -

          We recently updated from a quite old version (1.6 ish) and this is now happening to us too. We have users with employee numbers and then also vanity e-mails. In the logs, it complains that the vanity e-mails do not have permission to view job. I have tried to artificially give "them" permission and so far no luck. This is using the Roles Based permissions (which seems to work fine) except that only some e-mails are going out.

          Todd B added a comment - We recently updated from a quite old version (1.6 ish) and this is now happening to us too. We have users with employee numbers and then also vanity e-mails. In the logs, it complains that the vanity e-mails do not have permission to view job. I have tried to artificially give "them" permission and so far no luck. This is using the Roles Based permissions (which seems to work fine) except that only some e-mails are going out.

            Unassigned Unassigned
            waffel Thomas Wabner
            Votes:
            18 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated: