You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (Created) (JIRA)" <ji...@apache.org> on 2012/04/02 16:03:22 UTC

[jira] [Created] (CB-421) FileAPI: getParent() does not return a valid DirectoryEntry

FileAPI: getParent() does not return a valid DirectoryEntry
-----------------------------------------------------------

                 Key: CB-421
                 URL: https://issues.apache.org/jira/browse/CB-421
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.5.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
             Fix For: 1.6.0


Diego Guidi diegoguidi@gmail.com

Experimenting with the File API using Cordova 1.5.0. looks that the getParent method returns an invalid DirectoryEntry method.
The returned object contains the expected properties, like name and fullPath, but lacks of the  createReader method.
Here the console.log message:
04-02 08:39:39.035: I/Web Console(1305): Error in success callback: File10 = TypeError: Object #<an Object> has no method 'createReader' at file:///android_asset/scripts/cordova-1.5.0-a.js:651

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-421) FileAPI: getParent() does not return a valid DirectoryEntry

Posted by "Simon MacDonald (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-421.
--------------------------------

    Resolution: Fixed

The internal success function now turns the JSON object into a directory entry before calling the successCallback of the getParent method.
                
> FileAPI: getParent() does not return a valid DirectoryEntry
> -----------------------------------------------------------
>
>                 Key: CB-421
>                 URL: https://issues.apache.org/jira/browse/CB-421
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 1.6.0
>
>
> Diego Guidi diegoguidi@gmail.com
> Experimenting with the File API using Cordova 1.5.0. looks that the getParent method returns an invalid DirectoryEntry method.
> The returned object contains the expected properties, like name and fullPath, but lacks of the  createReader method.
> Here the console.log message:
> 04-02 08:39:39.035: I/Web Console(1305): Error in success callback: File10 = TypeError: Object #<an Object> has no method 'createReader' at file:///android_asset/scripts/cordova-1.5.0-a.js:651

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira