cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Avdonin (JIRA)" <>
Subject [jira] [Closed] (CB-3030) FileReader.readAsText fails with JSON error
Date Mon, 15 Apr 2013 18:38:15 GMT


Vladimir Avdonin closed CB-3030.

    Resolution: Invalid

Was fixed in 2.6
> FileReader.readAsText fails with JSON error
> -------------------------------------------
>                 Key: CB-3030
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Vladimir Avdonin
>            Assignee: Joe Bowser
>         Attachments: index.html
> When called to read the whole file readAsText fails with "JASON error". exception is
thrown from JSONArray.get(int), called from from the following code:
> int start = args.getInt(2);
> The reason is args at this point does not have 2 elements. It appears that readAsText
expects start and stop arguments to be always present, while caller in cordova.js only adds
these arguments when not full file is read. readAsDataURL has the same problem.
> Test program attached.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message