[ 
https://issues.apache.org/jira/browse/CB-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192458#comment-13192458
 ] 

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: https://issues.apache.org/jira/browse/CB-192
>             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 code
> 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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to