2023-01-27 22:56:34 |
Renan Rodrigo |
bug |
|
|
added bug |
2023-01-27 22:58:45 |
Renan Rodrigo |
description |
[Impact]
Although calls to apt update are always executed as root from the command line, in some scenarios a user may call 'update' on a Cache as a non-root user. Even being a corner case, some test suites for python-apt did run into this problem, for instance.
For what we need (esm-caches and apt-news), only the root calls should be enough.
Being defensive here avoids errors in undesired scenarios.
[Test Case]
There is an automated test script under sru/release-27.13.2/ to make sure this is covered.
[Regression Potential]
No visible regression potential, as the check for root user will just ensure default behavior in all use cases. The change is only making the code more defensive, and will not cause impact in any other package by skipping the u-a-t updates. |
[Impact]
Although calls to apt update are always executed as root from the command line, in some scenarios a user may call 'update' on a Cache as a non-root user. Even being a corner case, some test suites for python-apt did run into this problem, for instance.
For what we need (esm-caches and apt-news), only the root calls should be enough.
Being defensive here avoids errors in undesired scenarios.
[Test Case]
There is an automated test script (with a python snippet) under sru/release-27.13.2/ to make sure this is covered.
[Regression Potential]
No visible regression potential, as the check for root user will just ensure default behavior in all use cases. The change is only making the code more defensive, and will not cause impact in any other package by skipping the u-a-t updates. |
|
2023-01-27 23:02:45 |
Renan Rodrigo |
merge proposal linked |
|
https://code.launchpad.net/~renanrodrigo/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/436476 |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Kinetic |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Kinetic) |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Bionic |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Bionic) |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Lunar |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Lunar) |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Focal |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Focal) |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Jammy |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Jammy) |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Xenial |
|
2023-01-27 23:22:50 |
Andreas Hasenack |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Xenial) |
|
2023-01-27 23:43:59 |
Steve Langasek |
ubuntu-advantage-tools (Ubuntu Kinetic): status |
New |
Fix Committed |
|
2023-01-27 23:44:01 |
Steve Langasek |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-01-27 23:44:02 |
Steve Langasek |
bug |
|
|
added subscriber SRU Verification |
2023-01-27 23:44:05 |
Steve Langasek |
tags |
|
verification-needed verification-needed-kinetic |
|
2023-01-27 23:45:30 |
Steve Langasek |
ubuntu-advantage-tools (Ubuntu Jammy): status |
New |
Fix Committed |
|
2023-01-27 23:45:36 |
Steve Langasek |
tags |
verification-needed verification-needed-kinetic |
verification-needed verification-needed-jammy verification-needed-kinetic |
|
2023-01-27 23:46:32 |
Steve Langasek |
ubuntu-advantage-tools (Ubuntu Focal): status |
New |
Fix Committed |
|
2023-01-27 23:46:38 |
Steve Langasek |
tags |
verification-needed verification-needed-jammy verification-needed-kinetic |
verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic |
|
2023-01-27 23:59:47 |
Steve Langasek |
ubuntu-advantage-tools (Ubuntu Bionic): status |
New |
Fix Committed |
|
2023-01-27 23:59:54 |
Steve Langasek |
tags |
verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic |
verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic |
|
2023-01-28 00:01:16 |
Steve Langasek |
ubuntu-advantage-tools (Ubuntu Xenial): status |
New |
Fix Committed |
|
2023-01-28 00:01:23 |
Steve Langasek |
tags |
verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic |
verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-xenial |
|
2023-01-28 01:43:03 |
Renan Rodrigo |
attachment added |
|
2004057-tests.tar.gz https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2004057/+attachment/5643689/+files/2004057-tests.tar.gz |
|
2023-01-28 01:43:26 |
Renan Rodrigo |
tags |
verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-xenial |
verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-kinetic verification-done-xenial |
|
2023-01-28 05:02:38 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|
2023-01-28 05:02:46 |
Steve Langasek |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-01-28 05:03:11 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2023-01-28 05:03:40 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2023-01-28 05:03:54 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2023-01-28 05:04:13 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2023-01-28 11:40:36 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Lunar): status |
New |
Fix Released |
|