Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4339

Calling MimeMessage#setRecipients with empty array causes ArrayOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • mail
    • Security Level: public (Regular issues)
    • None
    • All

    Description

      Calling MimeMessage#setRecipients with an empty array triggers an ArrayOutOfBoundsException in InternetHeaders#setHeader(String, Address[]). This is caused by an incorrectly constructed if statement in setHeader.

      Attachments

        1. GERONIMO-4339.patch.txt
          1 kB
          Andreas Veithen

        Issue Links

          Activity

            People

              rickmcguire Richard McGuire
              veithen Andreas Veithen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: