You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/05 18:48:00 UTC

[jira] [Commented] (CAMEL-17586) Camel mail consumer: Unable to handle multiple attachments with the same filename

    [ https://issues.apache.org/jira/browse/CAMEL-17586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600510#comment-17600510 ] 

Claus Ibsen commented on CAMEL-17586:
-------------------------------------

You can now set failOnDuplicateAttachment=true

> Camel mail consumer: Unable to handle multiple attachments with the same filename
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-17586
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17586
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 3.x
>            Reporter: Manuel Shenavai
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.19.0
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)