Skip to content

[XmlToJson]Different output at certain message body #485

@Hooghof

Description

@Hooghof

Describe the bug
For a certain body, the output of 4.17.9 differs from 4.14.9

To Reproduce
Input

<message RESTmessage="origin/drabbe/product/201300186_stuk/stock" action="POST" class="array" key="201300186_stuk" sequence="1">
    <e>
        <identification>201300186_stuk</identification>
        <quantity>40</quantity>
        <next_date>9999-12-31</next_date>
        <next_quantity>1104</next_quantity>
    </e>
</message>

Output development

{
    "@sequence": "1",
    "@RESTmessage": "origin/drabbe/product/201300186_stuk/stock",
    "@action": "POST",
    "@key": "201300186_stuk",
    "e": {
        "identification": "201300186_stuk",
        "quantity": "40",
        "next_date": "9999-12-31",
        "next_quantity": "1104"
    }
}

Expected output
Output acceptance

[
    {
        "identification": "201300186_stuk",
        "quantity": "40",
        "next_date": "9999-12-31",
        "next_quantity": "1104"
    }
]

Test cases
NOT EXPECTED
Instance: development
Tenant: Regression Tests
Name: FG2478_XmlToJson
Version: 1
URL: https://development.dovetail.world/flowdesigner/691c8311ace1b8000700024b/1/settings

EXPECTED
Instance: acceptance
Tenant: Regression Tests
Name: FG2478_XmlToJson
Version: 1
URL: https://acceptance.dovetail.world/flowdesign/691c83b2ba6ff8001d000026

cUrl

curl --location 'https://development.dovetail.world/test/inbound_http/regressiontests/FG2478_XmlToJson' \
--header 'Content-Type: text/plain' \
--data '<message RESTmessage="origin/drabbe/product/201300186_stuk/stock" action="POST" class="array" key="201300186_stuk" sequence="1">
    <e>
        <identification>201300186_stuk</identification>
        <quantity>40</quantity>
        <next_date>9999-12-31</next_date>
        <next_quantity>1104</next_quantity>
    </e>
</message>'

https://dovetailworld.atlassian.net/browse/FG-2478

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions