Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5EA3FEB86 for ; Fri, 11 Jan 2013 19:28:14 +0000 (UTC) Received: (qmail 80232 invoked by uid 500); 11 Jan 2013 19:28:14 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 80189 invoked by uid 500); 11 Jan 2013 19:28:14 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 80180 invoked by uid 500); 11 Jan 2013 19:28:14 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 80177 invoked by uid 99); 11 Jan 2013 19:28:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 19:28:14 +0000 Date: Fri, 11 Jan 2013 19:28:14 +0000 (UTC) From: "Joe Bowser (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-2171) FileTransfer.download leaves 0 byte file in filesystem on 404 from server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser resolved CB-2171. ---------------------------- Resolution: Fixed Pull requests are welcome! > 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