IV37369: OBJECT.PROTOTYPE.TOSTRING.CALL(OBJ) RETURNS {}

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Unexpected results when and using 'Object.prototype.toString'
    function as part of the 'JSON2' library, as it returns {}, or
    the expanded value of it, according to him: "to have Log()
    results match the ones when running in an IPL policy"
    

Local fix

  • Workaround involves using "value instanceof Array" as the
    conditional
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Impact 61 Users                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When Object.prototype.toString.call(obj) is used in          *
    * javascript policy, it returns {}, instead of [object         *
    * Object].                                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * NONE                                                         *
    ****************************************************************
    The code enabled a property FEATURE_TO_STRING_AS_SOURCE i.e made
    it true When a policy is run, this property converts the data
    into string and enables the data to be the same in javascript
    and IPL. This was put in so that the data from IPL and
    javascript is the same though this is not following the
    javascript standard.
    

Problem conclusion

  • The fix is to make this property external so that the customers,
    who use javascript and want to follow the standard, can change
    the value of this property. The fix for this APAR is contained
    in the following maintenance package: | Fix Pack |
    6.1.0-TIV-NCI-FP0002
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV37369

  • Reported component name

    NETCOOL/IMPACT

  • Reported component ID

    5724O59IS

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-02-28

  • Closed date

    2013-07-31

  • Last modified date

    2013-07-31

  • 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

    NETCOOL/IMPACT

  • Fixed component ID

    5724O59IS

Applicable component levels

  • R610 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Tivoli Netcool/Impact
Netcool/Impact

Software version:

610

Reference #:

IV37369

Modified date:

2013-07-31

Translate my page

Machine Translation

Content navigation