[ https://issues.apache.org/jira/browse/THRIFT-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew Imrie updated THRIFT-1957: ---------------------------------- Description: Thrift for NodeJS is reading bytes as unsigned. The Apache Thrift specification describes them as signed. I changed the readByte function in both TFramedTransport and TBufferedTransport to call a new readByte method in binary.js that properly converts to a signed byte. Unit test for the method is included in binary.test.js was: Thrift for NodeJS is reading bytes as unsigned. The Apache specification describes them as signed. I changed the readByte function in both TFramedTransport and TBufferedTransport to call a new readByte method in binary.js that properly converts to a signed byte. Unit test for the method is included in binary.test.js > TFramedTransport and TBufferedTransport read bytes as unsigned > -------------------------------------------------------------- > > Key: THRIFT-1957 > URL: https://issues.apache.org/jira/browse/THRIFT-1957 > Project: Thrift > Issue Type: Bug > Components: Node.js - Library > Affects Versions: 0.9 > Environment: NodeJS 10.4, Thrift 0.9 > Reporter: Matthew Imrie > Labels: patch > Attachments: nodejs-thrift-signed-byte-fix.patch > > > Thrift for NodeJS is reading bytes as unsigned. The Apache Thrift > specification describes them as signed. > I changed the readByte function in both TFramedTransport and > TBufferedTransport to call a new readByte method in binary.js that properly > converts to a signed byte. Unit test for the method is included in > binary.test.js -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira