Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2331

Missing call to ReadStructBegin() in TApplicationException.Read()

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Delphi - Library
    • Labels:
      None
    • Patch Info:
      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.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment