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