IBM Support

PI77265: TEXT NODES OF OPTIONAL XML ELEMENTS FAIL VALIDATION WITH NULLS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When testing XML messages, the expected message has the
    following:
    
    <One> <--- optional
        <text>
    
    The incoming message has no text content so the XML looks like:
    
    <One/>
    
    If the incoming text value is validated against a tag with null
    value, the test fails with the following errors:
    
    The received message did not contain all expected fields (Action
    = "Validate Element Children")  -/text/root/one
    The field was not found in the received message (Action =
    "Validate Element Children")  -/text/root/one/{}
    
    EXPECTED RESULTS:
    
    Validation should pass
    
    WORKAROUND:
    
    Mark the text node as optional as well as the element.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of XML messages with NULL values                       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Optional XML elements would incorrectly  fail validation if  *
    * the text part was validated against a tag with null content. *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Update to RIT version 9.1.1
     XML text nodes that resolve to NULL are now treated as
    implicitly optional when the XML field expander does not have
    the send null value property set.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI77265

  • Reported component name

    RATL INTEGRA TE

  • Reported component ID

    5725G79IT

  • Reported release

    871

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-02-27

  • Closed date

    2017-10-11

  • Last modified date

    2017-10-11

  • 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

    RATL INTEGRA TE

  • Fixed component ID

    5725G79IT

Applicable component levels

  • R800 PSN

       UP

  • R801 PSN

       UP

  • R850 PSN

       UP

  • R851 PSN

       UP

  • R860 PSN

       UP

  • R870 PSN

       UP

  • R871 PSN

       UP

  • R900 PSN

       UP

  • R901 PSN

       UP

  • R910 PSN

       UP

  • R911 PSY

       UP



Document information

More support for: Rational Test Workbench

Software version: 871

Reference #: PI77265

Modified date: 11 October 2017