cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clayton Grassick (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-2171) FileTransfer.download leaves 0 byte file in filesystem on 404 from server
Date Tue, 08 Jan 2013 19:46:13 GMT
Clayton Grassick created CB-2171:
------------------------------------

             Summary: FileTransfer.download leaves 0 byte file in filesystem on 404 from server
                 Key: CB-2171
                 URL: https://issues.apache.org/jira/browse/CB-2171
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.3.0
         Environment: Android 2.3.
            Reporter: Clayton Grassick
            Assignee: Joe Bowser


To reproduce: 

Call fileTransfer.download, passing a URL which returns 404.

Error callback will be correctly fired. But 0-byte file will be left on filesystem. This is
because:

FileOutputStream outputStream = new FileOutputStream(file);

is called before the getInputStream is called.


--
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: http://www.atlassian.com/software/jira

Mime
View raw message