/usr/bin/software-properties-gtk:TypeError:msg_reply_handler:_enabled_reply_handler:__call__:call_async
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
Some livepatch errors case are not handling correctly and leading to having an error report rather than a error message
* Test case
Unsure how to trigger that livepatch error state, but that can be tested by hacking the source and set the 'token' parameter to the calls to SetLivePatchEna
Also check that the error reports stop for the new version
* Regression potential
The change is to use an empty string instead of None on error, since the type was incorrect and that case not working it should regress (it could keep not working if the other type was still not valid though, but that shouldn't be the case)
-------
The Ubuntu Error Tracker has been receiving reports about a problem regarding software-
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
Related branches
- Sebastien Bacher: Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 16 lines (+2/-1)1 file modifiedsoftwareproperties/gtk/LivepatchPage.py (+2/-1)
Changed in software-properties (Ubuntu): | |
status: | Confirmed → Fix Committed |
description: | updated |
tags: | added: regression-update |
The isssue seems an incorrectly handler of error cases
'Traceback (most recent call last): python3/ dist-packages/ dbus/connection .py", line 604, in msg_reply_handler handler( *message. get_args_ list(** get_args_ opts)) python3/ dist-packages/ softwarepropert ies/gtk/ LivepatchPage. py", line 363, in _enabled_ reply_handler python3/ dist-packages/ dbus/proxies. py", line 137, in __call__ python3/ dist-packages/ dbus/connection .py", line 584, in call_async append( signature= signature, *args)
File "/usr/lib/
reply_
File "/usr/lib/
timeout=1200)
File "/usr/lib/
**keywords)
File "/usr/lib/
message.
TypeError: Expected a string or unicode object'
Looking at some of the reports their journal log have such errors
'canonical- livepatch[ 851]: cannot disable machine: cannot send request: Delete https:/ /livepatch. canonical. com/api/ machine- tokens: net/http: TLS handshake timeout notifier. desktop[ 1556]: ERROR:dbus. connection: Unable to set arguments (True, None) according to signature 'bs': <class 'TypeError'>: Expected a string or unicode object'
update-
or
'canonical- livepatch[ 1161]: error in livepatch check state: check-failed livepatch[ 1161]: No payload available. notifier. desktop[ 3255]: ERROR:dbus. connection: Unable to set arguments (False, None) according to signature 'bs': <class 'TypeError'>: Expected a string or unicode object'
canonical-
update-