Bug 471894

Summary: Offline Updates Does Not Check Polkit Correctly On Remote Systems
Product: [Applications] Discover Reporter: Noorez <noorez.kassam>
Component: Updates (offline)Assignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aleixpol
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Noorez 2023-07-03 05:18:32 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Access system remotely via xrdp
2.  Set pokit policy to AUTH_ADMIN when refreshing system repositories, triggering offline updates and rebooting system
3.  Perform system update via discover app

OBSERVED RESULT

After updates are downloaded, the screen to initiate a reboot does not appear correctly and instead just refreshes the available update screen

EXPECTED RESULT

Screen to initiate a reboot and subsequent prompt from polkit to authenticate should appear if the policy allows for it

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Noorez 2023-07-04 18:25:33 UTC
This issue appears to extend to reboot and shutdown as well. Instead of the expected authentication prompt, the screen simply goes blank and does not provide any other feedback.
Comment 2 Aleix Pol 2023-07-05 22:46:06 UTC
Please report to PackageKit, Discover doesn't do any polkit calls.
https://github.com/PackageKit/PackageKit/issues/