APAR status
Closed as program error.
Error description
JUnit comparison of XML message trees incorrectly reports failure if XML attributes in different order
Local fix
NA
Problem summary
**************************************************************** USERS AFFECTED: All users of IBM App Connect v12 using trhe JUnit Test feature Platforms affected: MultiPlatform **************************************************************** PROBLEM DESCRIPTION: When using the JUnit matchers to match a logical message tree with expected data stored in a .mxml assertions can fail if the tree contains elements which match but attributes of xml elements are in the wrong order. For example: <test attr1="foo" attr2="bar/> Would fail to match with: <test attr2="bar" attr1="foo"/> This is incorrect since XML attributes are considered to be unordered int he XML specification. This problem may manifest itself by assertions in JUnit code failing unexpectedly for example: assertThat(actualMessageAssembly, equalsMessage(expectedMessageAssembly));
Problem conclusion
The message matching code was changed to no longer require XML attributes to be int he same order when amtching. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: Version Maintenance Level v12.0 12.0.6.0 The latest available maintenance can be obtained from: http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041 If the maintenance level is not yet available,information on its planned availability can be found on: http://www-1.ibm.com/support/docview.wss?rs=849&uid=swg27006308 ---------------------------------------------------------------
Temporary fix
Comments
APAR Information
APAR number
IT41347
Reported component name
APP CONNECT ENT
Reported component ID
5724J0560
Reported release
C00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-06-28
Closed date
2023-08-02
Last modified date
2023-08-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
APP CONNECT ENT
Fixed component ID
5724J0560
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDR5J","label":"IBM App Connect Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C00","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
16 August 2023