Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B259199DA for ; Tue, 10 Apr 2012 16:17:12 +0000 (UTC) Received: (qmail 54830 invoked by uid 500); 10 Apr 2012 16:17:12 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 54809 invoked by uid 500); 10 Apr 2012 16:17:12 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 54800 invoked by uid 99); 10 Apr 2012 16:17:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:17:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:17:07 +0000 Received: by qcso7 with SMTP id o7so3078219qcs.6 for ; Tue, 10 Apr 2012 09:16:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=tT0T63xi1BeCzUwexgCt63oq51u4zooqYGGZ6jHuXjM=; b=n/x03fUxtlxfNRgiBRV1SaC7DFFnzbnO9snqcuVW19YrVNbnUi3EQ1e6HXHhyKZN29 6cNue1meS8/UVqT8RaocbQ2uIlXq8tVdHQozFu2iqPtseD9+6a/U6YFqvbS2uVBNzf4B klKC+zMCfR6KnezBlGTvS8+XbAGr89aTMVTXagj3mWr2haRky++B40/PNa3TqrTNTQwo FxEX8XR2JIMgumB8iBk2HB/rfmyg+RkVGIFjHwVWhBIHeuRQ0hWg8YlNtgN6FB1zoaDb B/SvvOJLOnRivOqFxsY4v/Qq35Lb9RHTqtFMVPO4LuFnMFA92zxJbEm33Jv7U5NA0vi2 Q1xg== Received: by 10.224.223.76 with SMTP id ij12mr15314909qab.11.1334074606586; Tue, 10 Apr 2012 09:16:46 -0700 (PDT) Received: from login.fallenearth.com (cpe-071-065-253-054.nc.res.rr.com. [71.65.253.54]) by mx.google.com with ESMTPS id ha3sm507536qab.13.2012.04.10.09.16.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Apr 2012 09:16:45 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: [jira] [Resolved] (CB-442) FileTransfer download should not block the UI From: Marcus Wu In-Reply-To: Date: Tue, 10 Apr 2012 12:16:43 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <1FD9881B-9790-4512-9D0C-998F59D66260@bibliolabs.com> References: <955762835.235.1333750577421.JavaMail.tomcat@hel.zones.apache.org> <133F3F67-3DC5-4B2E-A873-997DB313C0CC@bibliolabs.com> To: callback-dev@incubator.apache.org X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQleUp7ljhWh5YPH8dT4hbxjPS3QSeqW/wrxoWRacK45hONyB8SnEGEbb5nfK8saisI3zp57 X-Virus-Checked: Checked by ClamAV on apache.org As in revert the download blocking fixes for 1.6.0? I don't think that = will entirely fix the issue as the callback casts are also causing = problems with the 1.6.0 javascript. On Apr 10, 2012, at 11:59 AM, Shazron wrote: > I'll have to revert the change for 1.6.0 >=20 > On Tue, Apr 10, 2012 at 8:56 AM, Shazron wrote: >> Re-open the issue >>=20 >> On Tue, Apr 10, 2012 at 7:19 AM, Marcus Wu = wrote: >>> I've noticed some problems with my fix for this since I committed = it. I noticed two things. >>>=20 >>> First, my error callbacks were never being called. This was because = I didn't realize the first time around that there is a different call = for converting the error callback string. >>> Second, the success callbacks were failing. I tracked this down to = errors in the success callback string due to the cast now being = integrated into the success callback code. >>>=20 >>> I have some changes to properly call the error callbacks and to = eliminate the cast in calling the success callback for the download. I = was about to create another pull request when I realized that the upload = code is also using a cast which appears to no longer be valid (although = I am not as familiar with this code as I am sure others are). Should I = go ahead and eliminate that upload cast before creating another pull = request? >>>=20 >>> Another question is does a ticket need to be created (or the = original ticket reopened) prior to creating a pull request? >>>=20 >>> Thanks, >>> Marcus >>>=20 >>> On Apr 6, 2012, at 6:16 PM, Shazron Abdullah (Resolved) (JIRA) = wrote: >>>=20 >>>>=20 >>>> [ = https://issues.apache.org/jira/browse/CB-442?page=3Dcom.atlassian.jira.plu= gin.system.issuetabpanels:all-tabpanel ] >>>>=20 >>>> Shazron Abdullah resolved CB-442. >>>> --------------------------------- >>>>=20 >>>> Resolution: Fixed >>>> Fix Version/s: 1.6.0 >>>>=20 >>>> Fix commit merged in (from Marcus Wu): = http://git-wip-us.apache.org/repos/asf?p=3Dincubator-cordova-ios.git;a=3Dc= ommit;h=3D2bf695b0bc7ec47e2ec1f40842035106811e35f2 >>>>=20 >>>>> FileTransfer download should not block the UI >>>>> --------------------------------------------- >>>>>=20 >>>>> Key: CB-442 >>>>> URL: https://issues.apache.org/jira/browse/CB-442 >>>>> Project: Apache Callback >>>>> Issue Type: Bug >>>>> Components: iOS >>>>> Affects Versions: Master >>>>> Reporter: Shazron Abdullah >>>>> Assignee: Shazron Abdullah >>>>> Fix For: 1.6.0 >>>>>=20 >>>>> Attachments: CB-442-test.html >>>>>=20 >>>>>=20 >>>>> Right now the way it downloads items, it blocks the UI: >>>>> = https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Cla= sses/CDVFileTransfer.m#L167 >>>>> NSData dataWithContentsOfUrl: >>>>> = https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Fou= ndation/Classes/NSData_Class/Reference/Reference.html >>>>> Change to an async download method. >>>>=20 >>>> -- >>>> 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 >>>>=20 >>>>=20 >>>=20