Uploaded image for project: 'Magnolia Mail Module'
  1. Magnolia Mail Module
  2. MGNLMAIL-16

MailAttachment uri may be set incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.0.2
    • 5.0.1
    • None
    • None
    • 5.1 Beta1- Frontend

    Description

      See SUPPORT-2528
      On Windows environment, creating a MailAttachment from a File parameter incorrectly sets its uri to file prefix + absolute path, e.g. file://C:/...

      This results in an IOException/UnknownHostException: C when sending the e-mail.

      Essentially, it seems to expect the following pattern: protocol://hostname/path;
      if hostname is blank it expects the third slash right away.

      We may well leave uri resolution up to the client and deprecate the setPath method for setUri.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                mgeljic Mikaël Geljić
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD