Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5168

MailAttachment uri may be set incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.5.11
    • 4.5
    • mail
    • None

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD