You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2012/10/25 18:03:12 UTC

[jira] [Created] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

Andrew Grieve created CB-1745:
---------------------------------

             Summary: Android's exec() function no longer returns the payload of synchronous calls
                 Key: CB-1745
                 URL: https://issues.apache.org/jira/browse/CB-1745
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: Master
            Reporter: Andrew Grieve
            Assignee: Andrew Grieve
             Fix For: 2.2.0


This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.

--
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: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Andrew Grieve resolved CB-1745.
-------------------------------

    Resolution: Fixed

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=576c320a0021220723e86deb9635745a68cf1c73
                
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Andrew Grieve commented on CB-1745:
-----------------------------------

And, that commit introduced an obvious bug (thanks Simon!) Another fix:

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=97a05cb0f672ee1bfb7e9e14a0dfd452d7763ba9
                
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Marcel Kinard commented on CB-1745:
-----------------------------------

Andrew, would it make sense to move the rc2 tag to the end of the stream so the recent fixes (especially the ones in the last 24 hours) are included?
                
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira

[jira] [Reopened] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Andrew Grieve reopened CB-1745:
-------------------------------


Problem is still happening when recursive exec() calls are made.
                
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Andrew Grieve resolved CB-1745.
-------------------------------

    Resolution: Fixed

Fixed by re-working queue processing on the JS side:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=d819e1e60599c12ac831379b06bba9110e9f1790

And by disabling limiting of JS payloads:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=678ae2d684a39017bec3586883c3a528190d4d20
                
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1745) Android's exec() function no longer returns the payload of synchronous calls

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

Simon MacDonald updated CB-1745:
--------------------------------

    Description: 
This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.

A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:

    var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);

The value of "returnValue" is "undefined".

  was:This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.

    
> Android's exec() function no longer returns the payload of synchronous calls
> ----------------------------------------------------------------------------
>
>                 Key: CB-1745
>                 URL: https://issues.apache.org/jira/browse/CB-1745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>             Fix For: 2.2.0
>
>
> This isn't supported cross-platform, but did work on Android before the recent refactorings. We should deprecate it and remove support in 6 months.
> A a new Plugin class extends the org.apache.cordova.api.Plugin class and over rides the isSync method. The method is setup to return "true" every time. When the method is calls from the JavaScript side like this:
>     var returnValue = cordova.exec(null, null, "PluginName", "method", [ "property" ]);
> The value of "returnValue" is "undefined".

--
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: http://www.atlassian.com/software/jira