Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3980

Defend against bad MIME type in Email.addAttachment

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      When responding positively to a Document Copy Request, we've seen instances in which hitting the Send button results in an error "javax.internet.mail.ParseException: Expected '/'; got null".  We don't know what triggers this, but addAttachment is obviously not checking for bad MIME types.  In such a case, it seems reasonable to set the type to "application/octet-stream" and log an error.

        Attachments

          Activity

            People

            Assignee:
            mwood Mark H. Wood
            Reporter:
            mwood Mark H. Wood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: