Jürgen Link created CAMEL-22202:
-----------------------------------

             Summary: camel-as2 - ApplicationEntity modifies original line 
endings on write
                 Key: CAMEL-22202
                 URL: https://issues.apache.org/jira/browse/CAMEL-22202
             Project: Camel
          Issue Type: Bug
          Components: camel-as2
    Affects Versions: 4.12.0, 4.10.5, 4.9.0, 4.8.7
            Reporter: Jürgen Link


ApplicationEntity, and therefore most extending classes as well, use an 
instance of CanonicalOutputStream to serialize the ediContent.

CanonicalOutputStream ensures lines to end with CRLF.

While this is appropriate for header lines, part delimiters and other 
protocol-related lines, it is not desirable for any content.

This issue is related to CAMEL-22037, which covers the same issue for 
TextPlainEntity.

I will provide a PR containing a unit test and a patched ApplicationEntity.



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

Reply via email to