Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3: Fix session storage #587

Closed
wants to merge 1 commit into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Mar 14, 2017

ctypes can only handle bytes, not text. Encode and decode all incoming
and outgoing text from UTF-8 to bytes.

Signed-off-by: Christian Heimes cheimes@redhat.com

ctypes can only handle bytes, not text. Encode and decode all incoming
and outgoing text from UTF-8 to bytes.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran requested a review from simo5 March 14, 2017 17:21
@tiran
Copy link
Member Author

tiran commented Mar 14, 2017

@simo5 is UTF-8 correct or are keys and values ASCII only?

@simo5
Copy link
Contributor

simo5 commented Mar 14, 2017

Technically principal names could use any encoding ... but we make the assumption they are utf-8 in freeIPA, so this should be ok.

@simo5 simo5 added the ack Pull Request approved, can be merged label Mar 14, 2017
@tiran tiran mentioned this pull request Mar 15, 2017
5 tasks
@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Mar 15, 2017
@MartinBasti
Copy link
Contributor

master:

  • 42bc778 Python 3: Fix session storage

@tiran tiran deleted the session_storage_py3 branch March 15, 2017 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants