IBM Support

PM75665: MYFACES 2.0 CDATA SECTIONS WRAPPING JAVASCRIPT CODE CUT OFF ON THE SERVER WHEN GENERATING PARTIAL AJAX RESPONSES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If JavaScript, being part of a partial response, contains
    comparison operators like "<" or ">", parsing of XML on the
    client side fails (at least in Google Chrome and Microsoft
    Internet Explorer9 browsers)
    

Local fix

  • correct received XML on the client side before giving it to the
    XML parser
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Versions   *
    *                  8.0 and 8.5 users of JavaServer Faces(JSF)  *
    *                  MyFaces.                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: CDATA sections wrapping JavaScript      *
    *                      code on a page are lost.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    For example if an application contains a page with:
    <script type="text/javascript">
    //<![CDATA[
    // JavaScript code ...
    if (345 > 34)
    {
    // JavaScript code ...
    }
    //]]>
    </script>
    The CDATA section is lost and the "greater than" sign is
    evaluated to &gt therefore not giving the expected behavior.
    The page incorrectly looks like the following:
    <script type="text/javascript">
    // JavaScript code ...
    if (345 &gt; 34)
    {
    // JavaScript code ...
    }
    </script>
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM75665

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-23

  • Closed date

    2013-01-31

  • Last modified date

    2013-01-31

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PM83737

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021