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

python TCompactProtocol.py writeBool and readBool not follow the compact-proto-spec-2.txt spec for CONTAINER_WRITE, CONTAINER_READ

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 0.7
    • Python - Library
    • None
    • Patch Available

    Description

      In https://issues.apache.org/jira/secure/attachment/12399869/compact-proto-spec-2.txt, define the boolean value as follow:
      boolean-true => 0x1
      boolean-false => 0x2
      But in TCompactProtocol.py writeBool, readBool for CONTAINER_WRITE, CONTAINER_READ just bool(0x2) will always get true.

      Attachments

        Activity

          People

            txdyjsyz liwei
            txdyjsyz liwei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: