Skip to content

[XmlToJson] Same input and settings, different output development and wcg, wiltec etc. #548

@Hooghof

Description

@Hooghof

A change (#485) on xmltojson on 4.17.10 looks fine on development in 4.17.11, but looks to fail on other 4.17.10 and 4.17.11 instances.

Input

<rmessage RESTgroupId="70003" action="POST" additionalInfo="Uitvoering_presentatie_92" applicationId="CLOUDSUITE" comment="Vertalen attribuutwaardes (translations)" id="translations_003" message="origin/bijou/attributelist" messageId="7000301010" parameters="/Uitvoering_presentatie_92/translations" step="01">
    <list_value>
        <e>
            <lang>nl_NL</lang>
            <value>TZ 541</value>
        </e>
        <e>
            <lang>fr_FR</lang>
            <value>TZ 541</value>
        </e>
    </list_value>
</rmessage>

Expected output

{
    "rmessage": {
        "@additionalInfo": "Uitvoering_presentatie_92",
        "@action": "POST",
        "@messageId": "7000301010",
        "@RESTgroupId": "70003",
        "@comment": "Vertalen attribuutwaardes (translations)",
        "@step": "01",
        "@id": "translations_003",
        "@applicationId": "CLOUDSUITE",
        "@message": "origin/bijou/attributelist",
        "@parameters": "/Uitvoering_presentatie_92/translations",
        "list_value": [
            {
                "lang": "nl_NL",
                "value": "TZ 541"
            },
            {
                "lang": "fr_FR",
                "value": "TZ 541"
            }
        ]
    }
}

Compare the result in these test flows:

  • development-WCG-XMLtoJSON
  • wcg-wholesale consulting group-XMLtoJSON
  • wcg8-bijou-XMLtoJSON

The output on wcg and wcg8

{
    "@additionalInfo": "Uitvoering_presentatie_92",
    "@action": "POST",
    "@messageId": "7000301010",
    "@RESTgroupId": "70003",
    "@comment": "Vertalen attribuutwaardes (translations)",
    "@step": "01",
    "@id": "translations_003",
    "@applicationId": "CLOUDSUITE",
    "@message": "origin/bijou/attributelist",
    "@parameters": "/Uitvoering_presentatie_92/translations",
    "list_value": [
        {
            "lang": "nl_NL",
            "value": "TZ 541"
        },
        {
            "lang": "fr_FR",
            "value": "TZ 541"
        }
    ]
}

The question is if there is a difference in version of the xmltojson component and if that's the case, how it can be.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions