The code incorrectly assumes that base64 is byte encoded so something
like:
elif content_encoding.lower() == 'base64':
if not isinstance(unencrypted, six.binary_type):
b64payload = unencrypted.encode('utf-8')
else:
b64payload = unencrypted
does the trick in terms of ensuring binary encoding of the data in this
code path.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1799746
Title:
PY3: when uploading file as secret: TypeError: a bytes-like object is
required, not 'str'
To manage notifications about this bug go to:
https://bugs.launchpad.net/castellan/+bug/1799746/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs