Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12078

MIME-Mutipart DataFormat reads attachment DataSource twice

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.20.1
    • Fix Version/s: 3.10.0
    • Component/s: camel-mail
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      As reported on mailing list if an attachment for MIME-Mutipart DataFormat is defined using a DataSource that can only be read once you get an exception.
      http://mail-archives.apache.org/mod_mbox/camel-users/201712.mbox/%3C0e0d4b2e-dc32-c61e-3ccd-7ee14238c485%40gmail.com%3E

      For instance, this happens if the DataSource is created using an InputStream that cannot be read multiple times
      It should be possible to post the data only reading the input a single time.

      I will add a test case shortly.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              tdudgeon Tim Dudgeon
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: