You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/01/23 19:12:39 UTC
[jira] [Created] (THRIFT-2331) Missing call to ReadStructBegin() in
TApplicationException.Read()
Jens Geyer created THRIFT-2331:
----------------------------------
Summary: Missing call to ReadStructBegin() in TApplicationException.Read()
Key: THRIFT-2331
URL: https://issues.apache.org/jira/browse/THRIFT-2331
Project: Thrift
Issue Type: Bug
Components: Delphi - Library
Reporter: Jens Geyer
Assignee: Jens Geyer
Fix For: 0.9.2
h3. Symptom
Whenever a TApplicationException is raised and the protocol has special data for BeginStruct(), the client faces an TProtocolException instead of the real TApplicationException.
h3. Testcase
After adding a new method to an existing service interface, let the _new_ client call the _old_ server using the JSON protocol. This throws an TApplicationException because of the new method being unknown to the old server. However, the client side code throws an protocol exception in ReadFieldBegin(), because the struct starter JSON code has not been properly consumed due to the missing call.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)