IBM Support

JR42734: AS2 CANONICALIZATION MIS-CALCULATE MESSAGE LENGTH.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment: WPG 6.2.0.2 on AIX
    
    Problem description:
    
    When messages contained <CRLF>, WPG got wrong message length
    after AS2 canoncialization.
    
    During canonicalizing we simply read the contents and check for
    CRLF. If there is only LF and no CR then we add a CR to it so
    that finally it gets interpreted as CRLF. This is as per AS2
    standards. So when canonicalizing the document we read and
    write it again based on the initially obtained content length.
    Since in this particlar case the content-length is calculated
    incorrectly for soem reason, when writing the data back some of
    it gets missed out and hence the corrupted data is sent out.
    
    Please refer to PMR 10227,211,788.
    

Local fix

  • Workaround: Configure excludedContentTypesForCanonicalization
    property to include the target message type.
    

Problem summary

  • AS2 canonicalization was miscalculating message length thus
    message was getting corrupted.
    

Problem conclusion

  • APAR fix JR42734 was provided to correct the way message length
    was calculated. During canonicalizing we read the contents and
    check for CRLF. If there is only LF and no CR then we add a CR
    to it so that finally it gets interpreted as CRLF. This is as
    per AS2 standards. So when canonicalizing the document we read
    and write it again based on the initially obtained content
    length. Since in this particlar case the content-length is
    calculated incorrectly, when writing the data back some of it
    gets missed out and hence the corrupted data is sent out.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR42734

  • Reported component name

    WEB PART GTWAY

  • Reported component ID

    5724L6900

  • Reported release

    621

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-07

  • Closed date

    2012-06-29

  • Last modified date

    2012-09-28

  • 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

    WEB PART GTWAY

  • Fixed component ID

    5724L6900

Applicable component levels

  • R621 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDKJ8","label":"WebSphere Partner Gateway Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.2.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
28 September 2012