Cancelling PolicyKit authorization produces silly error message
Bug #1058072 reported by
Matthew Paul Thomas
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Medium
|
Robert Roth |
Bug Description
software-
1. Open Software Sources.
2. Change anything, e.g. check/uncheck any of the checkboxes in the "Ubuntu Software" tab.
3. In the authorization prompt, choose "Cancel".
What happens: An error alert appears, "Authorization failed." - "Software sources can't be changed without permission."
What should happen: No error alert appears. You already know that you cancelled the authorization.
Related branches
lp:~evfool/software-properties/lp1058072
- Didier Roche-Tolomelli: Approve
-
Diff: 187 lines (+19/-25)1 file modifiedsoftwareproperties/gtk/SoftwarePropertiesGtk.py (+19/-25)
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: quantal |
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
Changed in software-properties (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in software-properties (Ubuntu): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Matthew -
I created that dialog, amidst fixing bug 828850 . The previous situation was: when you canceled authorization, you got an apport crash. It was several months ago, so I don't remember exactly why I thought a message might be needed. But I figured whether to have a dialog, at all, would be reviewed with the patch. I guess that's just happening now, in a way.
If I can get some time, I'll make a patch to remove the dialog. The original patch that included it is attached there at bug 828850. One would remove the five lines that define the dialog. Then in each of the many places that the patch wraps in try-except, replace the dialog with, well, whatever is a pythonic no-op in that if statement.