Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEB4D10FE6 for ; Wed, 27 Nov 2013 00:04:35 +0000 (UTC) Received: (qmail 53067 invoked by uid 500); 27 Nov 2013 00:04:35 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 53025 invoked by uid 500); 27 Nov 2013 00:04:35 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 53016 invoked by uid 99); 27 Nov 2013 00:04:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 00:04:35 +0000 Date: Wed, 27 Nov 2013 00:04:35 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-5457) File Upload seems to break js -> iOS interface 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-5457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-5457: --------------------------------- Component/s: iOS > File Upload seems to break js -> iOS interface > ---------------------------------------------- > > Key: CB-5457 > URL: https://issues.apache.org/jira/browse/CB-5457 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS, iOS, Plugin File Transfer > Affects Versions: 3.1.0 > Environment: iOS 7.0 > Reporter: Farhad Farzaneh > > After performing an upload File Transfer, plugins no longer work. What I _think_ happens is that if there are plugin interfaces during file transfer, for example, a console.log or File process, the first one triggers the _execXhr_ command with _gap_exec_ keyword, but this is not picked up. That is, it does not result in a CDVURLProtocol:canInitWithRequest. But the command is in the javascript commandQueue. No additional commands will trigger an execXhr b/c of the logic that assumes that if the command queue length > 1 the native side has already been "poked" and will pick up the commands shortly. If the native side has lost the command (and I don't know how or why), we're now wedged. A quick hack to prove the issue is to retrigger the execXhr if the command queue length is > 5, for example. This causes the native side to be poked again, and things work again. -- This message was sent by Atlassian JIRA (v6.1#6144)