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

Invalid comparison for protocol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0
    • 3.6.1, 3.6.3
    • mail

      In the code of the MgnlMultipartEmail there is at line 98 the following check:

      DataSource fds = url.getProtocol().startsWith("file:")

      The comparison includes a semicolumn, which will never be part of the protocol. This line should be changed to:

      DataSource fds = url.getProtocol().startsWith("file")

      According to the java implementation a protocol consists only of letters... and a colon ( : ) is not a letter.

        Acceptance criteria

              tmiyar Teresa Miyar
              leviter Marcel van den Brink
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD