You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from impala.dbapi import connect
con = connect(
"https://my-impala-host",
auth_mechanism="PLAIN",
use_http_transport=True,
user="foo",
password="this-is-a-very-long-password-that-is-really-very-long-and-goes-even-longer",
)
con.cursor()
Produces ValueError: Invalid header value b'Basic Zm9vOnRoaXMtaXMtYS12ZXJ5LWxvbmctcGFzc3dvcmQtdGhhdC1pcy1yZWFsbHktdmVyeS1sb25n\nLWFuZC1nb2VzLWV2ZW4tbG9uZ2Vy'
Expected Behavior:
Long password and user tuples are gracefully handled, either by setting limits or by robustly producing Basic auth headers also for long user/password combinations
Where is this problem coming from?
base64.encodebytes inserts newlines after every 76 bytes of output. These would need to be filtered out here
Alternatively, use base64.b64encode
The text was updated successfully, but these errors were encountered:
Impyla version: v0.18.0
Python version: 3.10.9
Minimal Example:
Produces
ValueError: Invalid header value b'Basic Zm9vOnRoaXMtaXMtYS12ZXJ5LWxvbmctcGFzc3dvcmQtdGhhdC1pcy1yZWFsbHktdmVyeS1sb25n\nLWFuZC1nb2VzLWV2ZW4tbG9uZ2Vy'
Expected Behavior:
Long password and user tuples are gracefully handled, either by setting limits or by robustly producing Basic auth headers also for long user/password combinations
Where is this problem coming from?
base64.encodebytes
inserts newlines after every 76 bytes of output. These would need to be filtered out hereAlternatively, use
base64.b64encode
The text was updated successfully, but these errors were encountered: