IBM Support

PI26376: JAVASCRIPT RELATIVE URL/PATH'S DOESN'T WORK IT GIVES 404 ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Javascript relative url/path's doesn't work it gives 404 error.
    
    Problem:
    - using dojo. We're using jQuery. Here, we rely on an external
    library (called requireJS -> http://requirejs.org) that is a
    module loader that makes the code look like dojo (that lead to
    the confusion...)
    - The 'text!' directive that seems to cause the issue is used to
    load the module as pure text (instead of being interpreted as
    JS).
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Application users using Worklight v6.2                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When using the Text plugin to load an HTMLs file using       *
    * http://requirejs.org framework gives 404 error.              *
    *                                                              *
    * eg:                                                          *
    *  require(                                                    *
    * [                                                            *
    * "text!friend-template.htm"                                   *
    * ]                                                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * none                                                         *
    ****************************************************************
    

Problem conclusion

  • Cordova code is fixed to address this relative url problem.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI26376

  • Reported component name

    WORKLIGHT CONSU

  • Reported component ID

    5725I4301

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-09-24

  • Closed date

    2015-01-06

  • Last modified date

    2015-01-06

  • 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 CONSU

  • Fixed component ID

    5725I4301

Applicable component levels

  • R620 PSY

       UP

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

Document Information

Modified date:
14 October 2021