Unable to save macaroons in MozillaCookieJar() under python3.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py-macaroon-bakery (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* USN publication for the Ubuntu Security Team triggers an exception:
[ELIDED]
File "/usr/lib/
if cookie.
File "/usr/lib/
return name in self._rest
TypeError: argument of type 'NoneType' is not iterable
* this should be fixed so that this error is not shown every time a
USN is published by one of the team members.
* other users of py-macaroon-bakery may be similarly affected but this
is a niche use-case (ie. macaroons and storing cookies in a MozillaCookieJar)
[ Test Plan ]
* The following simple python script triggers this bug:
import tempfile
import os
from http.cookiejar import MozillaCookieJar
from macaroonbakery import httpbakery, _utils
cookiefile = tempfile.
client = httpbakery.
client.
client.
* Once fixed no TypeError exception should be seen.
* Or the following script can be used from the qa-regression-
project: https:/
[ Where problems could occur ]
* For kinetic there is only one reverse dependency of
python3-
has no reverse dependencies/ As such there is not much chance of
regression on kinetic as there is no real users of this library in the
archive itself, however in this case a simple re-upload of the previous
version would fix any issue.
* For jammy, python3-
via gnome-online-
This was historically used for integration with Livepatch but that has
now been superceded by the Ubuntu Pro client and hence this is not
actually used by services on jammy anymore
- https:/
As such there is no real chance of regression here either.
[ Other Info ]
* Upstream bug report: https:/
Changed in py-macaroon-bakery (Ubuntu Jammy): | |
status: | New → Confirmed |
Changed in py-macaroon-bakery (Ubuntu Kinetic): | |
status: | New → Confirmed |
description: | updated |
Changed in py-macaroon-bakery (Ubuntu Jammy): | |
status: | Confirmed → In Progress |
Changed in py-macaroon-bakery (Ubuntu Kinetic): | |
status: | Confirmed → In Progress |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.