ubuntu-bug with program path says as a snap does not belong to a package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Bionic |
Fix Released
|
Low
|
Brian Murray | ||
Cosmic |
Fix Released
|
Low
|
Brian Murray |
Bug Description
[Impact]
ubuntu-bug responds with a misleading statement asked to report a bug about an executable path which starts with /snap/bin and the response is different than if you were to use the snap name e.g. ubuntu-bug juju
[Test Case]
1) Run ubuntu-bug /snap/bin/juju
2) Read "/snap/bin/juju does not belong to a package"
With the version of apport in -proposed you'll receive a more informative message about where you might get help regarding the issue you are experiencing.
[Regression Potential]
The new code only affects executables that start with '/snap/bin' so the only danger is if the newly added code contains an error which would cause a traceback.
Original Report
---------------
apport's ui.py file contains the following code:
809 # executable?
810 elif '/' in self.args[0]:
811 pkg = apport.
812 if not pkg:
813 optparser.error('%s does not belong to a package.' % self.args[0])
814 sys.exit(1)
815 self.args = []
816 self.options.
817 self.options.
This will not provide any useful information about what to do if the 'executable' is provided by a snap. Information similar to https:/
tags: | added: bionic snaps |
tags: | added: id-5abea8119060195b844876ec |
Changed in apport (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in apport (Ubuntu Cosmic): | |
status: | New → Triaged |
Changed in apport (Ubuntu Bionic): | |
importance: | Undecided → Low |
Changed in apport (Ubuntu Cosmic): | |
importance: | Undecided → Low |
description: | updated |
description: | updated |
Changed in apport (Ubuntu Bionic): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Cosmic): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
This bug was fixed in the package apport - 2.20.10-0ubuntu14
---------------
apport (2.20.10-0ubuntu14) disco; urgency=medium
* apport/ui.py: when using ubuntu-bug properly handle executables which
start with /snap/bin. (LP: #1760220)
-- Brian Murray <email address hidden> Thu, 01 Nov 2018 09:30:11 -0700