Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6306

strip out invalid addressees out of staging emails before send attempt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8
    • Component/s: Staging
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 12

      Description

      Staging emails can be sent to users identified by roles, specific email addresses, and the "creator" of the staging repo. If any one of these collected addresses is invalid syntactically, the entire email sending fails. The message logged:

      jvm 1    | 2014-02-25 16:19:55,424-0400 WARN  [pxpool-1-thread-3] admin, com.sonatype.nexus.staging.internal.task.RepositoryCloseTask - Failed to send notifications; ignoring: java.lang.IllegalArgumentException: Invalida e-mail address: "Administrator User" <changeme@*****>
      

      Some client side validation should be performed on the collected addresses before sending. If there are any addresses left after striping out the bad ones, continue the send attempt to these 'good ones'. Log at WARN all stripped addresses so an admin has a chance to correct this.

        Attachments

          Activity

            People

            Assignee:
            plynch Peter Lynch
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title