Uploading a file via script (using launchpadlib) results in truncated file.
Bug #1777535 reported by
Christopher Lee
This bug report is a duplicate of:
Bug #1729754: Python3 version of launchpadlib doesn't properly upload binary attachments to Launchpad.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
New
|
Undecided
|
Unassigned |
Bug Description
When adding a file to a milestone using launchpadlib we are seeing that a byte is being truncated from one of the files.
The file in question is the juju core source tarball[1]. If we upload the same file manually using the web UI it works as expected.
[1] i.e. https:/
affects: | launchpad → launchpadlib |
To post a comment you must log in.
I suspect that (a) the file in question ends with a carriage return byte and (b) you're using Python 3 to do the upload. Could you confirm or deny these two things?