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

TBinaryProtocol: exceeded message length raises generic TException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.9
    • Java - Library
    • None

    Description

      TBinaryProtocol allows you to set a readLength attribute when creating a Factory (at least in the Java lib). In TBinaryProtocol.checkReadLength(), if the message length exceeds this, a TException is raised.

      This failure should result in a TProtocolException instead to make it possible to distinguish some of the error cases. (In particular, it would make it easier for the server to notify the client that it should not reattempt sending the same message.)

      Attachments

        1. 1665-java-tprotocolexc.txt
          0.8 kB
          Tom Hobbs

        Activity

          People

            thobbs Tom Hobbs
            thobbs Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: