You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "liwei (JIRA)" <ji...@apache.org> on 2011/06/16 09:28:47 UTC
[jira] [Updated] (THRIFT-1208) python TCompactProtocol.py writeBool
and readBool not follow the compact-proto-spec-2.txt spec for
CONTAINER_WRITE, CONTAINER_READ
[ https://issues.apache.org/jira/browse/THRIFT-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liwei updated THRIFT-1208:
--------------------------
Attachment: THRIFT-1208.compactproto_readwrite_bool_bug.patch
I upload the patch file
> python TCompactProtocol.py writeBool and readBool not follow the compact-proto-spec-2.txt spec for CONTAINER_WRITE, CONTAINER_READ
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-1208
> URL: https://issues.apache.org/jira/browse/THRIFT-1208
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.6.1
> Reporter: liwei
> Attachments: THRIFT-1208.compactproto_readwrite_bool_bug.patch
>
>
> 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.
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira