group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #25125
[Bug 1729754] Re: Python3 version of launchpadlib doesn't properly upload binary attachments to Launchpad
1.3.3 (2018-07-20)
==================
- Drop support for Python < 2.6.
- Add tox testing support.
- Implement a subset of MIME multipart/form-data encoding locally rather
than using the standard library's email module, which doesn't have good
handling of binary parts and corrupts bytes in them that look like line
endings in various ways depending on the Python version. [bug=1729754]
** Changed in: wadllib
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1729754
Title:
Python3 version of launchpadlib doesn't properly upload binary
attachments to Launchpad
Status in wadllib:
Fix Released
Status in python-wadllib package in Ubuntu:
New
Status in python-wadllib source package in Xenial:
New
Status in python-wadllib source package in Bionic:
New
Bug description:
Tested on 16.04 and 17.10
python-launchpadlib (1.10.5-1 on 17.10)
python3-launchpadlib (1.10.5-1 on 17.10)
While working on porting a utility using launchpadlib from Python2 to
Python3, I noticed the binary attachments were becoming unreadable.
I wrote a little proof of concept that uploads a given binary
attachment to a launchpad issue (see attachment). To use it on staging
launchpad:
APPORT_STAGING=1 ./poc.py <bug_number> </path/to/file.bin>
When using the exact same script with python2 (basically, replacing
`python3` with `python` in the shebang line), the binary file is
properly attached. That's why I think it's a bug with
python3-launchpadlib.
I've tried uploading .jpg files, .tgz files, .tar.xz files, they all
fail to open properly.
P.S.: When a fix is available, can it be ported to Xenial? We need
this for our tools running on devices using Xenial.
To manage notifications about this bug go to:
https://bugs.launchpad.net/wadllib/+bug/1729754/+subscriptions