[
https://issues.apache.org/jira/browse/THRIFT-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King III resolved THRIFT-4892.
---------------------------------------
Resolution: Fixed
> SASL data type exception for PLAIN
> ----------------------------------
>
> Key: THRIFT-4892
> URL: https://issues.apache.org/jira/browse/THRIFT-4892
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.12.0
> Reporter: James E. King III
> Assignee: James E. King III
> Priority: Major
> Fix For: 0.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> From: https://github.com/apache/thrift/pull/1804
> A small data type mistake were observed during usage of SASL
> mechanism="PLAIN".
> on 379-380 lines there're 2 calls of send_sasl_msg, where 1st uses
> sels.sasl.mechanism, which is of type str(), while 2nd uses
> self.sasl.process(), which generates bytes().
> exception happens on line 402, where header generated on line 401 using
> pack() which returns type bytes() being concatenated with body provided to
> send_sasl_msg() func.
> Since self.transport.write accepts bytes() only, it's better to use bytes
> everywhere...
> on the line 420 we have similar error, where str().join() is being called,
> but both parameters passed to it are of type bytes(), which raises an
> exception.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)