Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1600

[ios] crash in MobileSpec under 4.3 during file transfer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • cordova-ios
    • None

    Description

      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 there.

      Other debugger info:

      response expectedContentLength == -1
      response URL == http://cordova-filetransfer.jitsu.com/robots.txt

      Attachments

        Issue Links

          Activity

            People

              pmuellr Patrick Mueller
              pmuellr Patrick Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: