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 2025/05/06 11:23:00 UTC

[jira] [Resolved] (CAMEL-22037) camel-as2 - In AS2Receiver, line feeds are replaced by CRLF

     [ https://issues.apache.org/jira/browse/CAMEL-22037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-22037.
---------------------------------
    Resolution: Fixed

Thanks for reporting and the unit test and fix

> camel-as2 - In AS2Receiver, line feeds are replaced by CRLF
> -----------------------------------------------------------
>
>                 Key: CAMEL-22037
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22037
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-as2
>    Affects Versions: 4.11.0
>            Reporter: Jürgen Link
>            Priority: Major
>             Fix For: 4.8.8, 4.10.5, 4.12.0
>
>
> We use Apache Camel AS2 libraries in our application to receive and process AS2 messages.
> Currently, we tracked down an issue where a client message's signature fails to be validated.
> It turns out that the message content contains CRLF line endings in the mime part body, while the original message has LF only.
> We were able to verify that replacement LF->CRLF is carried out in CanonicalOutputStream, which is used in AS2 implementation to marshal the signed entity in SigningUtils::isValid into a byte array.



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