incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-192) Plugins fail silently when string argument contains \x00 charachters
Date Tue, 24 Jan 2012 20:10:41 GMT


Becky Gibson commented on CB-192:

FWIW in 1.4 [PGViewController execute]we do log a failure:   

NSLog(@"FAILED pluginJSON = %@",commandJson); 

It would be more difficult to find and call the error function (if it exists) since the embedded
null causes the command to not be parsed.  In the case of JSONKit mutableObjectFromJSONString
returning null we'd have to parse the command string manually looking for the error callback.
 Since the error callback parameters to each plugin could be different this doesn't seem practical.
> Plugins fail silently when string argument contains \x00 charachters
> --------------------------------------------------------------------
>                 Key: CB-192
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.3.0
>         Environment: Mac OS X Lion, XCode 4.2, Phonegap 1.3.0
>            Reporter: Derek Jensen
>            Assignee: Shazron Abdullah
> Passing an string argument with hex 0 imbedded in it causes the plugin to fail silently.
> While the argument is correctly processed by JSON.stringify(), the plugin objective-c
> is never called.  To see this in action, try console.log("foo\x00");

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message