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 33C61D834 for ; Wed, 11 Jul 2012 18:17:35 +0000 (UTC) Received: (qmail 15722 invoked by uid 500); 11 Jul 2012 18:17:35 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 15698 invoked by uid 500); 11 Jul 2012 18:17:35 -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 15653 invoked by uid 99); 11 Jul 2012 18:17:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 18:17:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9802D142822 for ; Wed, 11 Jul 2012 18:17:34 +0000 (UTC) Date: Wed, 11 Jul 2012 18:17:34 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <957389359.36959.1342030654629.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2038907991.33596.1341980676243.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CB-1028) FileTransfer.upload WebKit discarded an uncaught exception 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-1028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411803#comment-13411803 ] Andrew Grieve commented on CB-1028: ----------------------------------- Looks like a bug in the escaping logic added in this commit: https://github.com/apache/incubator-cordova-ios/commit/626c2333e9bb47420c4dcd518f95b97d9f9a440c It's triggered when your URL ends with a /. I'll put together a unit test + fix. > FileTransfer.upload WebKit discarded an uncaught exception > ---------------------------------------------------------- > > Key: CB-1028 > URL: https://issues.apache.org/jira/browse/CB-1028 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.9.0 > Environment: OS X Lion, Xcode 4.3.3, iPhone iOS 5.1 > Reporter: Thejaswi Puthraya > Assignee: Shazron Abdullah > Priority: Critical > Fix For: 2.0.0 > > Attachments: phonegap_snippet.html > > > I seem to be running into this issue with Cordova 1.9.0 on iOS. The traceback I get is:: > 2012-07-10 11:51:34.455 BuzzVote[3800:707] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: *** -[__NSCFString substringToIndex:]: Range or index out of bounds > Here's how I use the FileTransfer to reproduce the error. > For more information, I am using XCode 4.3.3, Cordova 1.9.0 and the iPad 2 Wifi with 5.1.1. Please check the enclosed phonegap_snippet.html to reproduce the error. > This is related to #543. -- 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