Bug 510137

Summary: gpk-application gives no error if user doesn't have install privileges, just does nothing
Product: [Fedora] Fedora Reporter: Jón Fairbairn <jon.fairbairn>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: lmacken, rhughes, richard, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-22 16:01:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jón Fairbairn 2009-07-07 20:25:58 UTC
Description of problem:
Having granted myself org.freedesktop.packagekit.system-update
I didn't notice and didn't give myself org.freedesktop.packagekit.package-install. Later when I tried to use gpk-application to install an application The "Apply" button lit up, so I clicked on it. It went through some of the stages (getting information; resolving dependencies) and then simply stopped with the "Apply" button lit up.

Version-Release number of selected component (if applicable):
gnome-packagekit-2.27.2-1.fc11.x86_64

How reproducible:
Completely


Steps to Reproduce:
1. Connect from a non-console session
2. If you already have org.freedesktop.packagekit.package-install, use polkit-auth to revoke it
3. start gpk-application
4. select a package that isn't already installed
5. click on apply
  
Actual results:
some blinkenlights and then back to stage 5

Expected results:
an error dialogue box that complains that the user is not authorised to install packages (ideally mentioning org.freedesktop.packagekit.package-install)

Additional info:
This sort of thing is why I still tend to type "sudo yum install ..."

Comment 1 Steven M. Parrish 2009-07-22 14:36:40 UTC
Richard,  Comments, questions?

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 2 Richard Hughes 2009-07-23 18:06:37 UTC
We've fixed this in rawhide using PolicyKit1, but I'm not sure about 0.4.x -- looks like we'll have to code up the same fallback.

Comment 3 Steven M. Parrish 2009-09-29 13:50:08 UTC
Richard, any movement on this issue?

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Jón Fairbairn 2010-01-16 10:22:09 UTC
Trying this in Fedora 12, I get an error box, so I think this should be closed nextrelease, though the error box probably should say "not authorized" rather than "authorization failed ... you have failed to provide correct authentication" given that one is given no opportunity to provide it.