[ https://issues.apache.org/jira/browse/CB-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-2171. ---------------------------- Resolution: Fixed Fix Version/s: 2.4.0 https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=7ace1d652d665c850941531c18cdc55b9c7981b3 > 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 > Fix For: 2.4.0 > > > 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