You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Richard Kimber (Created) (JIRA)" <ji...@apache.org> on 2012/04/19 23:24:40 UTC

[jira] [Created] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

FileTransfer.upload WebKit discarded an uncaught exception
----------------------------------------------------------

                 Key: CB-543
                 URL: https://issues.apache.org/jira/browse/CB-543
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.6.1
         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
            Reporter: Richard Kimber
            Assignee: Shazron Abdullah


Unable to upload file to server using FileTransfer.upload.

The following code:

	var onSuccess, onError;

	options.destinationType = Camera.DestinationType.FILE_URI;

	onSuccess = function(imageURI) {
		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");

		app.views[name + "Form"].imageURI = imageURI;
	};
	
	onError = function(message) {
		console.log(message);
		Ext.Msg.alert("Camera", "There was a problem with the camera.");
	};

	navigator.camera.getPicture(onSuccess, onError, options);

	----

	var options = new FileUploadOptions();
	options.fileKey = "repair[image]";
	options.params = fix_form_names(form.getValues());

	var ft = new FileTransfer();

	ft.upload(form.imageURI, form.url, win, fail, options, true);

Returns the following error:

	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Richard Kimber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257880#comment-13257880 ] 

Richard Kimber commented on CB-543:
-----------------------------------

Hi @Shazron. Any thoughts on what the problem might be? Rich
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Updated] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Richard Kimber (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Kimber updated CB-543:
------------------------------

    Description: 
Unable to upload file to server using FileTransfer.upload.

The following code:

	var onSuccess, onError;

	options.destinationType = Camera.DestinationType.FILE_URI;

	onSuccess = function(imageURI) {
		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");

		app.views[name + "Form"].imageURI = imageURI;
	};
	
	onError = function(message) {
		console.log(message);
		Ext.Msg.alert("Camera", "There was a problem with the camera.");
	};

	navigator.camera.getPicture(onSuccess, onError, options);

	----

	var options = new FileUploadOptions();
	options.fileKey = "repair[image]";
	options.params = fix_form_names(form.getValues());

	var ft = new FileTransfer();

	ft.upload(form.imageURI, form.url, win, fail, options, true);

Returns the following error:

	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)

This code was working on PhoneGap 1.4.1.

Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

  was:
Unable to upload file to server using FileTransfer.upload.

The following code:

	var onSuccess, onError;

	options.destinationType = Camera.DestinationType.FILE_URI;

	onSuccess = function(imageURI) {
		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");

		app.views[name + "Form"].imageURI = imageURI;
	};
	
	onError = function(message) {
		console.log(message);
		Ext.Msg.alert("Camera", "There was a problem with the camera.");
	};

	navigator.camera.getPicture(onSuccess, onError, options);

	----

	var options = new FileUploadOptions();
	options.fileKey = "repair[image]";
	options.params = fix_form_names(form.getValues());

	var ft = new FileTransfer();

	ft.upload(form.imageURI, form.url, win, fail, options, true);

Returns the following error:

	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)

    
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Resolved] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-543.
---------------------------------

    Resolution: Fixed

Fix commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/3794f4db
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Eric Sukalac (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415790#comment-13415790 ] 

Eric Sukalac commented on CB-543:
---------------------------------

1 - NSCFString. The actual error is as follows
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[NSCFString substringToIndex:]: Range or index out of bounds
2 - I'm using Cordova 1.9 from it's first day as a release. I'll try updating to 2.0RC1 and report back if it's fixed here.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Updated] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-543:
--------------------------------

    Fix Version/s: 1.7.0
    
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410256#comment-13410256 ] 

Thejaswi Puthraya commented on CB-543:
--------------------------------------

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: <NSRangeException> *** -[__NSCFString substringToIndex:]: Range or index out of bounds 
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Richard Kimber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258018#comment-13258018 ] 

Richard Kimber commented on CB-543:
-----------------------------------

I can confirm that specifying all options does resolve the issue. Thanks for looking at the issue so quickly @Shazron.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Comment Edited] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Eric Sukalac (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415790#comment-13415790 ] 

Eric Sukalac edited comment on CB-543 at 7/17/12 12:59 AM:
-----------------------------------------------------------

# - NSCFString. The actual error is as follows: {noformat}*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[NSCFString substringToIndex:]: Range or index out of bounds{noformat}
# - I'm using Cordova 1.9 from it's first day as a release. I'll try updating to 2.0RC1 and report back if it's fixed here.
                
      was (Author: ericsukalac):
    1 - NSCFString. The actual error is as follows
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[NSCFString substringToIndex:]: Range or index out of bounds
2 - I'm using Cordova 1.9 from it's first day as a release. I'll try updating to 2.0RC1 and report back if it's fixed here.
                  
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Eric Sukalac (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415822#comment-13415822 ] 

Eric Sukalac commented on CB-543:
---------------------------------

Looks like I won't be able to actually test in 2.0RC1 until CB-479 is done. The upgrade process isn't currently documented and I don't have time to try to recreate my project structure with the new format tonight.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257883#comment-13257883 ] 

Shazron Abdullah commented on CB-543:
-------------------------------------

My suspicion is expected arguments mismatch btw JavaScript and Obj-C. I'm taking a look at this next after I finish up another issue.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415116#comment-13415116 ] 

Andrew Grieve commented on CB-543:
----------------------------------

Eric, can you confirm a couple details for me? 

1 - Does your exception complain about [JKArray objectAtIndex:], or -[__NSCFString substringToIndex:]
2 - How old is your copy of cordova? 

There was a fix in 1.9 for the -[__NSCFString substringToIndex:] problem that went in just 4 days ago (https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=3d2487443a918b7f1d9b9e415e2a140d48185c83)
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Updated] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-543:
--------------------------------

    Priority: Critical  (was: Major)
    
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Richard Kimber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257832#comment-13257832 ] 

Richard Kimber commented on CB-543:
-----------------------------------

Further report here, http://stackoverflow.com/questions/10141975/cordova-fileupload-errors-in-xcode-webkit-discarded-an-uncaught-exception.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Updated] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejaswi Puthraya updated CB-543:
---------------------------------

    Attachment: phonegap_snippet.html

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.
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257934#comment-13257934 ] 

Shazron Abdullah commented on CB-543:
-------------------------------------

the js: https://github.com/apache/incubator-cordova-js/blob/master/lib/common/plugin/FileTransfer.js#L19

Index 4 means the fileName option was not provided. There was a change in 1.6.0 where the options were moved, and are now arguments (to make it cross-platform, basically taking the Android js). The Obj-C treats these as required arguments (incorrect), when they should be optional as per the docs. 

There was a regression that I found in 1.6.0 as well, while researching this issue: CB-255

As a workaround in 1.6, please provide the optional "fileName" and "mimeType" options as well - in fact all three options fileName, mimeType and fileKey should be provided for 1.6.0 to prevent this issue.

                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Commented] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Eric Sukalac (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414811#comment-13414811 ] 

Eric Sukalac commented on CB-543:
---------------------------------

I'm seeing the same error running Cordova 1.9.0 on iOS4.

I'm using all of the options in my FileUploadOptions object as described here http://stackoverflow.com/questions/10141975/cordova-fileupload-errors-in-xcode-webkit-discarded-an-uncaught-exception

>From what I remember, this functionality was working in Cordova 1.8
                
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: phonegap_snippet.html
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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

        

[jira] [Issue Comment Edited] (CB-543) FileTransfer.upload WebKit discarded an uncaught exception

Posted by "Shazron Abdullah (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257936#comment-13257936 ] 

Shazron Abdullah edited comment on CB-543 at 4/20/12 12:31 AM:
---------------------------------------------------------------

This issue will be automatically fixed once CB-255 is fixed.
                
      was (Author: shazron):
    This issue depends on CB-255
                  
> FileTransfer.upload WebKit discarded an uncaught exception
> ----------------------------------------------------------
>
>                 Key: CB-543
>                 URL: https://issues.apache.org/jira/browse/CB-543
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: OS X Lion, Xcode 4.3.2, iPhone iOS 5.1
>            Reporter: Richard Kimber
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> Unable to upload file to server using FileTransfer.upload.
> The following code:
> 	var onSuccess, onError;
> 	options.destinationType = Camera.DestinationType.FILE_URI;
> 	onSuccess = function(imageURI) {
> 		Ext.get("uploaded_image_" + name).setStyle("background-image","url(" + imageURI + ")");
> 		app.views[name + "Form"].imageURI = imageURI;
> 	};
> 	
> 	onError = function(message) {
> 		console.log(message);
> 		Ext.Msg.alert("Camera", "There was a problem with the camera.");
> 	};
> 	navigator.camera.getPicture(onSuccess, onError, options);
> 	----
> 	var options = new FileUploadOptions();
> 	options.fileKey = "repair[image]";
> 	options.params = fix_form_names(form.getValues());
> 	var ft = new FileTransfer();
> 	ft.upload(form.imageURI, form.url, win, fail, options, true);
> Returns the following error:
> 	*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (4) beyond bounds (4)
> This code was working on PhoneGap 1.4.1.
> Further reports at https://groups.google.com/forum/?fromgroups#!topic/phonegap/w8SOE5IEr9o

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