[ https://issues.apache.org/jira/browse/THRIFT-815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier updated THRIFT-815: ------------------------------- Attachment: test.html The patch fixes the list type! attached is a qunit based test, that also contains utf-8 string tests, etc, not complete yet but it might be a starting point. Currently I use test/cpp/srcTestServer.cpp using the C++ HttpServer, provided by THRIFT-247 https://svn.apache.org/repos/asf/incubator/thrift/trunk/test/ThriftTest.thrift I'm not sure if all supported Languages are doing the same within UnitTests.... e.g echo a list, etc. > Deserialization of lists is critically broken. > ---------------------------------------------- > > Key: THRIFT-815 > URL: https://issues.apache.org/jira/browse/THRIFT-815 > Project: Thrift > Issue Type: Bug > Components: Compiler (JavaScript) > Affects Versions: 0.4 > Reporter: Jordan > Assignee: T Jake Luciani > Priority: Critical > Fix For: 0.4 > > Attachments: 813-1.patch, test.html > > > Edit the test code that comes with the js language target: > var list = [1,2,3]; > var ret = client.testList(list); > debugger; > ret comes back as [3,3,3] when it should be echoed back as [1,2,3] > The test case never caught this because it only verified the size, and not > the contents of the returned array. > I cannot find an immediate workaround, but I will try wrapping it in a dummy > type like ListServiceResponse. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.