Shreyesh created THRIFT-5926:
--------------------------------
Summary: [Python] TSaslClientTransport.open() crashes with
DIGEST-MD5 due to None initial response
Key: THRIFT-5926
URL: https://issues.apache.org/jira/browse/THRIFT-5926
Project: Thrift
Issue Type: Bug
Components: Python - Library
Environment: N/A
Reporter: Shreyesh
*Summary*
TSaslClientTransport.open() in thrift-python (<=0.21) crashes when used with
DIGEST-MD5 authentication because it passes None to send_sasl_msg(), which
calls len(body) on it.
When puresasl's DIGEST-MD5 mechanism is used with TSaslClientTransport,
self.sasl.process() correctly returns None on the first call (no challenge
available yet). However, TSaslClientTransport.open() passes this None directly
to `send_sasl_msg()`, which calls len(body) and raises: `TypeError: object of
type 'NoneType' has no len()`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)