frankframework / frankframework

The Frank!Framework is an easy-to-use, stateless integration framework which allows (transactional) messages to be modified and exchanged between different systems.
https://frankframework.org
Apache License 2.0
130 stars 78 forks source link

Json2XmlValidatorPipe adding linebreaks to base 64 fields #6495

Closed BonnoSmeele closed 7 months ago

BonnoSmeele commented 7 months ago

❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗

Describe the issue When using a jsonpipe to create JSON, base64 input seems to be wrapped. XSD is used and field is set to xs:base64Binary.

\n appears in JSON pipe output base64 field

Reporter Bonno Smeele

Create a JSON pipe with base64 input, see linebreaks appear as output

Screenshots Input: image

Output: image

XSD: image

Please provide the configuration of the Pipe or Receiver with the problem.

            <Json2XmlValidatorPipe name="XMLToJSONConversion"
                outputFormat="JSON"
                throwException="true"
                root="PortimaRequest"
                schema="PushPolicy_1/xsd/JSONModel.xsd">
                <Forward name="success" path="CallInvokeAzuretoken"/>
            </Json2XmlValidatorPipe>
[Pipeline PushPolicy_1.zip](https://github.com/frankframework/frankframework/files/14720801/Pipeline.PushPolicy_1.zip)

Please provide an example of the input message. Alternatively, provide a Ladybug report.


**Environment**

FF! 7.9.1: frank2lifepolicy_portima_con Running on frank2lifepolicy-portima_con-app-acc using Apache Tomcat/9.0.83 Java Version: OpenJDK Runtime Environment (11.0.22+7-LTS) Heap size: 198M, total JVM memory: 603M Free disk space: 25GB, total disk space: 30GB Up since: 2024-03-22 09:42:04 (1h)



**Additional Environment**
 - DBMS: [e.g. Oracle, MSSQL, MariaDB, MySql, PostgreSQL]
 - Browser: [e.g. Chrome, Safari, Edge, Firefox]

**Additional Context**
Add any other context about the problem here. (f.e. ladybug report / test adapter with larva test)
nielsm5 commented 7 months ago

You can try setting lineLength=-1 on the Base64Pipe