Merge lp:~gocept/landscape-client/fetch-strings-and-bytes into lp:~landscape/landscape-client/trunk
Proposed by
Steffen Allner
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 959 |
Merged at revision: | 960 |
Proposed branch: | lp:~gocept/landscape-client/fetch-strings-and-bytes |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
99 lines (+40/-27) 2 files modified
landscape/broker/tests/test_transport.py (+37/-26) landscape/lib/fetch.py (+3/-1) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/fetch-strings-and-bytes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Michael Howitz (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Landscape | Pending | ||
Review via email: mp+319898@code.launchpad.net |
Commit message
Fix UnicodeDecodeError (bug #1672720) when exchanging message with the server.
Encode unicode strings in landscape.lib.fetch before passing over to libcurl.
Description of the change
Now also allow bytes as data to be fetched. This should enable to use bpickled unicode data. I also added a new test to cover that.
Testing instructions:
* Use the client in communication with a server as reported in the bug.
To post a comment you must log in.
Command: TRIAL_ARGS=-j4 make check /ci.lscape. net/job/ latch-test- xenial/ 3623/
Result: Fail
Revno: 958
Branch: lp:~gocept/landscape-client/fetch-strings-and-bytes
Jenkins: https:/