You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2011/04/18 21:44:05 UTC
[jira] [Commented] (THRIFT-1150) List Deserialization with jQuery
doesnt work
[ https://issues.apache.org/jira/browse/THRIFT-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021202#comment-13021202 ]
Roger Meier commented on THRIFT-1150:
-------------------------------------
Hi Nils, Thanks for finding and fixing bugs! ;-)
jQuery.parseJSON was introduced with THRIFT-1087
All current test cases at /lib/js/test/test.html pass... What server side do you use?
Could you provide a patch for the JavaScript test suite?
I would like to add that Testcase based on ThriftTest.thrift first.
> List Deserialization with jQuery doesnt work
> --------------------------------------------
>
> Key: THRIFT-1150
> URL: https://issues.apache.org/jira/browse/THRIFT-1150
> Project: Thrift
> Issue Type: Bug
> Components: JavaScript - Library
> Affects Versions: 0.6.1
> Reporter: Nils Hügelmann
>
> the following encoded data is properly processed when eval is used, but not when jQuery.parseJSON is active. (thrift.js line ~ 580)
> {noformat}
> [1,"Info",2,0,{"0":{"rec":{"1":{"str":"de1"},"2":{"lst":["rec",1,{"1":{"str":"dev"},"2":{"str":"78.46.113.59"},"3":{"i32":2080},"4":{"i32":1},"5":{"i32":0},"6":{"str":"de"}}]},"4":{"rec":{"1":{"str":"127.0.0.1"},"2":{"str":"--"}}}}}}]
> {noformat}
> thrift definition is
> {noformat}
> struct Info{
> 1: string defaultGateway,
> 2: list<Gateway> gateways,
> 3: optional string showURL,
> 4: ExternalInfo externalInfo
> }
> {noformat}
> Error message is
> TypeError: this.rstack[this.rstack.length - 1] is undefined
> (thrift.js Line 662)
> This may be related to https://issues.apache.org/jira/browse/THRIFT-815 ??
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira