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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.9.2
    • Delphi - Library
    • 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.

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: