python3.5 contentsource.py:UrlContentSource passes -1 to fd.read
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Fix Released
|
Medium
|
Unassigned | ||
simplestreams (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Passing -1 to http.client.read fails with the following error:
File "/usr/lib/
content, payload = reader.
File "/usr/lib/
raw = source.
File "/usr/lib/
return self.fd.read(size)
File "/usr/lib/
return self.req.read(size)
File "/usr/lib/
b = bytearray(amt)
builtins.
In that case above size is -1, in python 3 that is in Xenial is should be None.
Related branches
- Scott Moser: Pending requested
-
Diff: 70 lines (+39/-3)2 files modifiedsimplestreams/contentsource.py (+6/-3)
tests/unittests/test_contentsource.py (+33/-0)
Changed in simplestreams: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in simplestreams (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in simplestreams: | |
status: | Confirmed → Fix Released |
This bug was fixed in the package simplestreams - 0.1.0~bzr420- 0ubuntu1
--------------- bzr420- 0ubuntu1) xenial; urgency=medium
simplestreams (0.1.0~
* New upstream snapshot.
- sstream-query, sstream-mirror: fix a bug where --no-verify did not
work with signed streams.
- sanitize size parameter to read on Readers to address differences
in python2 and python3 (LP: #1523682).
* debian/control:
- bump standards version
- add build-depends on python-requests, python3-requests
- add build-depends on dh-python
* debian/copyright: fix lintian error by changing license name
'agplv3' to 'AGPL-3'
-- Scott Moser <email address hidden> Tue, 08 Dec 2015 16:20:28 -0500