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:18:38 UTC

[jira] [Resolved] (THRIFT-2331) Missing call to ReadStructBegin() in TApplicationException.Read()

     [ https://issues.apache.org/jira/browse/THRIFT-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-2331.
--------------------------------

    Resolution: Fixed

Tested & committed.

> 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
>            Priority: Trivial
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2331_missing_call_to_ReadStructBegin.patch
>
>
> 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)