IBM Support

PH62139: JSF AJAX FILE UPLOAD ENCOUNTERS HASKEY TYPE ERROR

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • The JavaScript error "Uncaught TypeError: G.hasKey is not a
    function" occurs when using ajax with the file upload tag.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of Java Server Faces (JSF) on IBM     *
    *                  WebSphere Application Server version 9.0.5  *
    *                  and users of jsf-2.2, jsf-2.3, and          *
    *                  faces-3.0 on WebSphere Liberty.All users    *
    *                  of IBM WebSphere Application                *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Ajax file uploads in JSF fail with      *
    *                      the following error: G.hasKey is not    *
    *                      a function                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The fix for PH55398 (introduced in 24.0.0.1 and 9.0.5.19)
    accidentally created a regression in JSF.
    When an application uses Ajax-enabled file uploads, the
    following  JavaScript error may occur:
    Uncaught TypeError: G.hasKey is not a function
    at eval ( eval at appendIssuingItem
    (jsf.jx.xhtml?In=javax.feaces:13:72889)
    at J.<computed>.appendIssuingItem (
    jsf.js.xhtml?In=javax.faces:12:72889)
    at constructor_.getFormData
    (jsf.js.xhtml?In=javax.faces:13:87643)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH62139

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2024-07-02

  • Closed date

    2024-08-09

  • Last modified date

    2024-08-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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
29 August 2024