IBM Support

PI10959: JSONSTORE FAILS TO REMOVE ALL DOCS IN THE DOC ARRAY WHEN A DOC ARRAY IS PASSED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When invoking WL.JSONStore.remove with a parameter of Array of
    Documents, only the last element from the array was removed
    instead of all the documents in the array
    

Local fix

  • var ids = res.map(function(current){ return current._id  })
    var promises = [];
    while(ids.length){
    
    promises.push(WL.JSONStore.get(PEOPLE_COLLECTION_NAME).remove(id
    s.pop(
    )));
    }
    return WLJQ.when.apply(null, promises);
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Developers attempting to remove documents from the JSONStore *
    * using an array of documents.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When attempting to remove documents from a JSONStore by      *
    * passing an array of documents to the .remove function, only  *
    * the last element is removed instead of all of the desired    *
    * elements.                                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • The code has been fixed so that the removal operation functions
    properly.
    
    The fix for this APAR is currently targeted for fixpack 6.1.0.1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI10959

  • Reported component name

    WORKLIGHT ENTER

  • Reported component ID

    5725I4300

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-03

  • Closed date

    2014-02-13

  • Last modified date

    2014-02-13

  • 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

    WORKLIGHT ENTER

  • Fixed component ID

    5725I4300

Applicable component levels

  • R600 PSY

       UP

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"600","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021