You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Henrique Mendonca (JIRA)" <ji...@apache.org> on 2011/04/28 11:24:03 UTC
[jira] [Updated] (THRIFT-1150) List Deserialization with jQuery
doesnt work
[ https://issues.apache.org/jira/browse/THRIFT-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henrique Mendonca updated THRIFT-1150:
--------------------------------------
Attachment: THRIFT-1150-qunit.patch
hm... it does work for me on firefox 3.6.16
please feel free to edit my test patch
> 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
> Attachments: THRIFT-1150-qunit.patch
>
>
> 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