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 C50C6D0E2 for ; Tue, 9 Oct 2012 20:36:03 +0000 (UTC) Received: (qmail 1994 invoked by uid 500); 9 Oct 2012 20:36:03 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 1935 invoked by uid 500); 9 Oct 2012 20:36:03 -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 1743 invoked by uid 99); 9 Oct 2012 20:36:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 20:36:03 +0000 Date: Tue, 9 Oct 2012 20:36:03 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1361977056.16563.1349814963345.JavaMail.jiratomcat@arcas> In-Reply-To: <333190656.11000.1349731803022.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1600) [ios] crash in MobileSpec under 4.3 during file transfer 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-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472721#comment-13472721 ] Andrew Grieve commented on CB-1600: ----------------------------------- Main concern about your pull request is that self.viewController should not be cast to CDVViewController*. Any APIs to be made available to plugins should go in CDVCommandDelegate.h. I think the solution should be to use only your isKindOf check and add a comment about this being the case on 4.3 (doesn't seem to repro on 5.0) > [ios] crash in MobileSpec under 4.3 during file transfer > -------------------------------------------------------- > > Key: CB-1600 > URL: https://issues.apache.org/jira/browse/CB-1600 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Reporter: Patrick Mueller > Assignee: Andrew Grieve > > I've run Mobile Spec under iOS 4.3 (Xcode 4.5.1 on Lion), and noticed a consistent trap. > The problem occurs in [CDVFileTransfer.m:477|https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVFileTransfer.m#L477] in method {{- (void)connection:(NSURLConnection*)connection didReceiveResponse:(NSURLResponse*)response}}. > As near as I can tell, from the debugger, the object coming in as the response is not actually an NSHTTPURLResponse, and that's where the crash is - when it asks for the statusCode. Cast that didn't work, but you don't find out till you try to access something that's not there. > Other debugger info: > response expectedContentLength == -1 > response URL == http://cordova-filetransfer.jitsu.com/robots.txt -- 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