IBM Support

PI44703: A HYBRID APP MAY FAIL TO UPLOAD A FILE USING A NATIVE FILEREADER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A hybrid app may fail to upload a file using a native FileReader
    and never get to the onload function.
    
    The following error may be logged:
    "A requested file or directory could not be found at the time an
    operation was processed." name: "NotFoundError"
    
    Additional Keywords:
    
    Initial Impact: High
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Android users who have a file chooser in their application.  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The user is not able to display an image after selecting the *
    * file through the native file chooser. Using readAsDataUrl as *
    * the file reading method, the file is not read because the    *
    * result from the native Android file read returns a blob      *
    * object instead of a file. On the JavaScript side, the blob   *
    * is not recognized and therefore a FileNotFoundException is   *
    * thrown. Blobs were not allowed as a URL type due to some     *
    * refactoring in the Whitelist to only allow file, content,    *
    * and data URLs. Blobs were forgotten, so left out of the      *
    * list.                                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • Allow blob URL into the Whitelist.
    
    After installing the iFix, rebuild the Android application and
    redeploy.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI44703

  • Reported component name

    MFPF/WORKLIGHT

  • Reported component ID

    5725I4301

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-07-09

  • Closed date

    2015-07-28

  • Last modified date

    2015-07-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

    MFPF/WORKLIGHT

  • Fixed component ID

    5725I4301

Applicable component levels

  • R620 PSY

       UP

  • R630 PSY

       UP

  • R700 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:
17 October 2021