You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/01/30 18:44:11 UTC

[jira] [Updated] (CB-3804) Not consistently setting PluginResult message for JSON_EXCEPTION Status

     [ https://issues.apache.org/jira/browse/CB-3804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bas Bosman updated CB-3804:
---------------------------

    Component/s: Plugin InAppBrowser

> Not consistently setting PluginResult message for JSON_EXCEPTION Status
> -----------------------------------------------------------------------
>
>                 Key: CB-3804
>                 URL: https://issues.apache.org/jira/browse/CB-3804
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, Plugin InAppBrowser
>    Affects Versions: 2.7.0
>            Reporter: Peter
>            Assignee: Joe Bowser
>            Priority: Minor
>
> The PluginResult appears to be inconsistently created for Status.JSON_EXCEPTION. 
> exception message is passed
> * InAppBrowser.java: scriptResult = new PluginResult(PluginResult.Status.JSON_EXCEPTION, e.getMessage());
> exception message is NOT passed
> * InAppBrower.java: this.callbackContext.sendPluginResult(new  PluginResult(PluginResult.Status.JSON_EXCEPTION));
> * Globalization.java: callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
> * FileTransfer.java: result = new PluginResult(PluginResult.Status.JSON_EXCEPTION);
> * FileTransfer.java: context.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
> * App.java: callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
> * PluginManager.java: PluginResult cr = new PluginResult(PluginResult.Status.JSON_EXCEPTION);
> Shouldn't these all be constructed the same?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)