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

JSON Protocol doesn't extends TProtocolFactory and doesn't write messages begin properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • C++ - Library
    • None
    • Patch Available

    Description

      The trunk cpp JSON protocol doesn't work because of two small issues:

      • First part of the writeMessageBegin protocol is to write the Thrift Protocol version, which is stored in a uint8_t static variable. Unfortunately boost::lexical_cast handles uint8_t as a string type and doesn't write the given number. Fixed by moving the variable from uint8_t to uint32_t.
      • The current JSONProtocolFactory implements TProtocolFactory but doesn't extend it, so it unuseable.

      Attachments

        Activity

          People

            ahfeel Jérémie BORDIER
            ahfeel Jérémie BORDIER
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: