cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Commented] (CB-1600) [ios] crash in MobileSpec under 4.3 during file transfer
Date Tue, 09 Oct 2012 20:36:03 GMT


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:
>             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|]
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
> Other debugger info:
> response expectedContentLength == -1
> response URL ==

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:

View raw message