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

Jürgen Link updated CAMEL-22202:
--------------------------------
    Description: 
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.

 

A pull request is available: https://github.com/apache/camel/pull/18481

  was:
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.


> 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.8.7, 4.9.0, 4.10.5, 4.12.0
>            Reporter: Jürgen Link
>            Priority: Major
>
> 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.
>  
> A pull request is available: https://github.com/apache/camel/pull/18481



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

Reply via email to