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

JSON protocol does not handle bool and empty containers correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2, 0.9.3
    • 0.10.0
    • Haskell - Library
    • None
    • Patch Available

    Description

      I'm using Thrift to communicate with Apache Aurora and have had to make a couple of changes to the JSON protocol implementation, namely:

      • Write booleans as '1'/'0' instead of "true"/"false"
      • Parse empty lists

      The code appears identical in the current master branch. I've attached a patch with the changes I've made, but they've only been tested for my use case; I haven't looked at any specs.

      Attachments

        1. thrift-fixes.patch
          2 kB
          Rhys Adams

        Activity

          People

            nsuke Nobuaki Sukegawa
            rhysadams Rhys Adams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: