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

Properly handle multiple cookies in rpcclient #206

Closed
wants to merge 2 commits into from

Conversation

simo5
Copy link
Contributor

@simo5 simo5 commented Nov 1, 2016

The current code does not give a list of cookies, but a concatenated string separated by a comma. This is a format the Cookie class does not understand. msg.getheaders returns the wanted format.

@MartinBasti MartinBasti self-assigned this Nov 15, 2016
@MartinBasti
Copy link
Contributor

At the end of server install many times and it is also printed by each ipa command

Forwarding 'ca_is_enabled' to json server 'https://vm-058-013.ipa.test/ipa/json'
unable to parse cookie header '['ipa_session=d367590c2429dec4c142af0509a5f96a; Domain=vm-058-013.ipa.test; Path=/ipa; Expires=Thu, 17 Nov 2016 00:43:55 GMT; Secure; HttpOnly']': expected string or buffer

@simo5
Copy link
Contributor Author

simo5 commented Dec 1, 2016

This new patch should fix it.

@MartinBasti
Copy link
Contributor

could you please fix PEP8?

./ipalib/rpc.py:702:80: E501 line too long (93 > 79 characters)

@simo5
Copy link
Contributor Author

simo5 commented Dec 7, 2016

Yes, getting there, be patient, I discovered other stuff as I fixed pylint per single patch :)

@simo5
Copy link
Contributor Author

simo5 commented Dec 7, 2016

Sorry I thought this PR was the priv sep one, I have fixes for this, pushing in a moment.

Signed-off-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Simo Sorce <simo@redhat.com>
@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Dec 8, 2016
@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Dec 8, 2016
@MartinBasti MartinBasti closed this Dec 8, 2016
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
2 participants