[Merge] ~nteodosio/update-manager:focal-ua into update-manager:ubuntu/focal

Nathan Teodosio mp+459153 at code.launchpad.net
Mon Jan 22 11:28:22 UTC 2024


Nathan Teodosio has proposed merging ~nteodosio/update-manager:focal-ua into update-manager:ubuntu/focal.

Requested reviews:
  Sebastien Bacher (seb128)
Related bugs:
  Bug #2049785 in update-manager (Ubuntu): "/usr/bin/update-manager:json.decoder.JSONDecodeError:/bin/update-manager at 118:start_update:start_available:refresh_cache:_get_ua_security_status:load:loads:decode:raw_decode"
  https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2049785

For more details, see:
https://code.launchpad.net/~nteodosio/update-manager/+git/update-manager/+merge/459153

Fix the crash caused by incomplete response of the 'ua security-status' when ubuntu-advantage-tools (UAT) is an older version.

As the documentation[1] states, this call returns no exceptions, so in my opinion it is simpler to switch to it than patching our old call to security-status.

However, this crash would also occur by using the version 27 of the API, so the effective fix here is to force ubuntu-advantage-tools >= 30.

[1] https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/references/api/#u-pro-packages-updates-v1
-- 
Your team Ubuntu Core Development Team is subscribed to branch update-manager:ubuntu/focal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 4607 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20240122/c462d4ee/attachment.diff>


More information about the Ubuntu-reviews mailing list