Bug 495538

Summary: Rebooting into pending offline update for major Fedora version (40 -> 41) unnecessarily prompts for authentication *behind* the logout window, breaking the update flow
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Session ManagementAssignee: Alessandro Astone <ales.astone>
Status: RESOLVED UPSTREAM    
Severity: major CC: ales.astone, john.kizer, natalie_clarius, sitter, tduck973564
Priority: HI Keywords: regression
Version: 6.2.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: PackageKit 1.3.1
Sentry Crash Report:
Attachments: Example of an authentication prompt showing up behind the restart prompt

Description Nate Graham 2024-10-29 17:36:15 UTC
STEPS TO REPRODUCE
1. Have an upgrade to a new major version of Fedora KDE available (e.g. 40 -> 41)
2. Launch Discover and do the update
3. When prompted, reboot via the button in Discover or the item that appears in the System Tray
4. Click "Update and Restart" on the logout screen

OBSERVED RESULT
Nothing happens, because an authentication prompt appeared *behind* the logout screen, because it's set to go on top of everything.

EXPECTED RESULT
Ideally, an instant reboot with no prompt for authentication. If somehow that's impossible (though I remember it being possible in the past), the authentication prompt appears above the logout screen so the user can see and interact with it

ADDITIONAL INFORMATION
It's not easily possible to proceed. Even if you figure out what happened, Alt-tabbing to the prompt doesn't bring it forward.
Comment 1 John Kizer 2024-10-29 17:57:39 UTC
Created attachment 175341 [details]
Example of an authentication prompt showing up behind the restart prompt

Screenshot from the Fedora 40 to 41 upgrade process on KDE Plasma 6.2.2
Comment 2 Nate Graham 2024-10-29 17:58:01 UTC
If I Alt+Tab to the prompt and close it from there, The reboot happens and the update proceeds without issue. So I guess it's not actually needed somehow? But still, it breaks the upgrade flow.
Comment 3 Nate Graham 2024-10-29 17:58:54 UTC
Since this has been found on released Plasma as well, marking as confirmed and raising priority.
Comment 4 Alessandro Astone 2024-10-29 22:55:19 UTC
Huh, I find it odd that the you say the authentication wasn't necessary for the upgrade to happen.
I would expect the bug to be that discover isn't waiting for a response to the authentication prompt before asking to reboot (which would be a regression).

It's unfortunate that this wasn't picked up during Fedora 41 Upgrade Test Days, but I suppose that's because the bug was introduced in 6.2.0 which landed in F40 after the test days date.

Anyways, I can take a look next week.
Comment 5 Nate Graham 2024-10-29 23:03:09 UTC
There were two authentication prompts:
1. One in Discover, at the end of the upgrade process
2. A second one that appeared behind the logout screen when trying to reboot and apply updates

I didn't try canceling the first one, but canceling the second one did not prevent applying the update.
Comment 6 Alessandro Astone 2024-11-02 21:06:14 UTC
https://github.com/PackageKit/PackageKit/pull/805
Comment 7 Nate Graham 2024-11-04 21:30:52 UTC
Thank you so much!