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

JSON protocol does not handle bool and empty containers correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: Haskell - Library
    • Labels:
      None
    • Patch Info:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: