[Bug 1058072] Re: Cancelling PolicyKit authorization produces silly error message
Edward Donovan
launchpad at numble.net
Tue Oct 9 16:52:36 UTC 2012
Thanks, Matthew, and no problem. :)
For distinguishing the cases...I don't know of a way to do that. For
any failed authentication, dbus returns the exception
'PermissionDeniedByPolicy', and with the patch, software-properties
catches that. Maybe somewhere in dbus, a finer distinction could be
found, but that's just speculation. What I know about this, I just
learned at the time of going after this bug.
I'll look next at the cleanest way to change the code, when it catches
that exception, to do a no-op, and not pop any dialog.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1058072
Title:
Cancelling PolicyKit authorization produces silly error message
Status in “software-properties” package in Ubuntu:
Triaged
Bug description:
software-properties-gtk 0.92.6, Ubuntu Q
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1058072/+subscriptions
More information about the foundations-bugs
mailing list