← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2008814] Re: Failing to parse apt_news if folder is not present

 

This bug was fixed in the package ubuntu-advantage-tools -
27.13.6~22.04.1

---------------
ubuntu-advantage-tools (27.13.6~22.04.1) jammy; urgency=medium

  * Backport new upstream release: (LP: #2008814) to jammy

ubuntu-advantage-tools (27.13.6~23.04.1) lunar; urgency=medium

  * apt-news:
    - make sure systems which never ran a pro command get the apt-news message
      displayed (LP: #2008814)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Tue, 28 Feb 2023
16:17:51 -0300

** Changed in: ubuntu-advantage-tools (Ubuntu Jammy)
       Status: Fix Committed => Fix Released

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2008814

Title:
  Failing to parse apt_news if folder is not present

Status in ubuntu-advantage-tools package in Ubuntu:
  Fix Committed
Status in ubuntu-advantage-tools source package in Xenial:
  Fix Released
Status in ubuntu-advantage-tools source package in Bionic:
  Fix Released
Status in ubuntu-advantage-tools source package in Focal:
  Fix Released
Status in ubuntu-advantage-tools source package in Jammy:
  Fix Released
Status in ubuntu-advantage-tools source package in Kinetic:
  Fix Released

Bug description:
  [Impact]
  We have the APT news structure now in place and user should be seeing messages related to it when running some apt commands. We store that information in a specific folder (/run/ubuntu-advantage) related to the pro client. If that folder is not present, we are not saving the contents of the apt news endpoint and because of that, users are not seeing that message.

  [Test Case]

  We have a integration test that already covers this scenario. We have
  added the results of running that test here in the comments.

  [Regression Potential]

  We are just creating the folder necessary to store the APT news data.
  What will happen is that users that are not seeing that message will
  now see it, which is what we expect.

  If something fails with the directory creation, then the bug will
  persist: the client will log it, and people will not see apt news when
  running apt upgrade. As the command is run as root, there should be no
  permission error when creating a dir in /root.

  [Discussion]

  This folder should be present in the system if the user has run any
  pro command in the past. If that is not the case, then this bug
  happens. We are now always trying to create the folder before running
  the job that fetches the apt news messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2008814/+subscriptions