Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
Symptom
Whenever a TApplicationException is raised and the protocol has special data for BeginStruct(), the client faces an TProtocolException instead of the real TApplicationException.
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.