UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Lucas Albuquerque Medeiros de Moura | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
This bug affects anyone trying to report a bug about ubuntu-
[Test Case]
<TODO>
[Regression Potential]
In order to mitigate the regression potential, the results of the
aforementioned tests are attached to this bug.
As the change here is making an except block broader than it was before, we could potentially be ignoring other bugs not related to this that would eventually happen in the apport call. However, we want to ignore any file which is not collected for any reason no matter what, so this is not considered a major problem.
[Discussion]
The load_file function expects utf-8 because some strings must be redacted before posted to Launchpad. Trying to get those files without decoding them and checking for the strings could potentially lead to leaks, which would be way worse than not getting the file at all.
If bug information is missing because we ignore some file(s), we can ask the reporter for more information in the bug itself.
[Original Description]
Hello, ubuntu-
$ sudo ubuntu-bug ubuntu-
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.......
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
collect_
File "/usr/lib/
content = system.load_file(f)
File "/usr/lib/
return content.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
..
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (4.7 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C):
Thanks
Related branches
- Robie Basak: Approve (ubuntu-sru)
- Paride Legovini (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 1047 lines (+302/-105)27 files modifiedapt-hook/20apt-esm-hook.conf (+1/-1)
apt-hook/json-hook.cc (+15/-5)
debian/changelog (+13/-0)
debian/ubuntu-advantage-tools.postinst (+32/-0)
features/api_full_auto_attach.feature (+1/-1)
features/apt_messages.feature (+88/-23)
features/cloud_pro_clone.feature (+0/-1)
features/daemon.feature (+3/-2)
features/docker.feature (+3/-1)
features/environment.py (+4/-4)
features/ubuntu_pro.feature (+3/-0)
features/unattached_commands.feature (+5/-6)
integration-requirements.txt (+1/-1)
uaclient/actions.py (+24/-16)
uaclient/cli.py (+9/-0)
uaclient/config.py (+12/-0)
uaclient/defaults.py (+2/-2)
uaclient/jobs/update_messaging.py (+17/-27)
uaclient/messages.py (+0/-4)
uaclient/system.py (+13/-0)
uaclient/tests/test_actions.py (+36/-1)
uaclient/tests/test_cli_config_set.py (+2/-1)
uaclient/tests/test_cli_config_show.py (+1/-0)
uaclient/tests/test_cli_config_unset.py (+1/-1)
uaclient/tests/test_config.py (+4/-1)
uaclient/tests/test_version.py (+5/-2)
uaclient/version.py (+7/-5)
- Paride Legovini (community): Approve
- Robie Basak: Approve (ubuntu-sru)
-
Diff: 657 lines (+198/-69)23 files modifiedapt-hook/json-hook.cc (+13/-5)
debian/changelog (+12/-0)
debian/ubuntu-advantage-tools.postinst (+23/-0)
features/api_full_auto_attach.feature (+1/-1)
features/apt_messages.feature (+11/-2)
features/cloud_pro_clone.feature (+0/-1)
features/daemon.feature (+3/-2)
features/docker.feature (+3/-1)
features/environment.py (+4/-4)
features/ubuntu_pro.feature (+3/-0)
integration-requirements.txt (+1/-1)
uaclient/actions.py (+24/-16)
uaclient/cli.py (+9/-0)
uaclient/config.py (+12/-0)
uaclient/jobs/update_messaging.py (+21/-27)
uaclient/messages.py (+0/-4)
uaclient/system.py (+13/-0)
uaclient/tests/test_actions.py (+36/-1)
uaclient/tests/test_cli_config_set.py (+2/-1)
uaclient/tests/test_cli_config_show.py (+1/-0)
uaclient/tests/test_cli_config_unset.py (+1/-1)
uaclient/tests/test_config.py (+4/-1)
uaclient/version.py (+1/-1)
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.