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

Camel mail consumer: Unable to handle multiple attachments with the same filename

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.x
    • 3.19.0
    • camel-mail
    • None
    • Unknown

    Description

      If there is a mail with multiple attachments that have the same name, only one of the attachments will be added to the attachment map of the exchange. The other attachments will be ignored and only a warning will be logged.

      https://github.com/mash-sap/camel/blob/main/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailBinding.java#L371

      This will cause data loss.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mash-sap Manuel Shenavai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: