Bug 469159 - Authentication prompt is shown at the *end* of a major distro upgrade in Discover, not at the beginning
Summary: Authentication prompt is shown at the *end* of a major distro upgrade in Disc...
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: Updates (offline) (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://github.com/PackageKit/Package...
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-04-29 21:43 UTC by Nate Graham
Modified: 2024-05-21 16:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-04-29 21:43:44 UTC
STEPS TO REPRODUCE
1. Launch Discover with a major distro upgrade available
2. Click the "Upgrade to [distro version]" button
3. Go to the Updates page manually (See Bug 469156)
4. Click on "Update all" button

OBSERVED RESULT
The update starts downloading and takes a while. At the *end* of this process, I am shown an authentication dialog.

EXPECTED RESULT
The authentication dialog should be shown at the *beginning* of the process.
Comment 1 Harald Sitter 2024-05-08 06:39:30 UTC
I am pretty sure that is behavior from packagekit not us. We don't do authentication requests directly (except for snap?). Does pkcon show the same behavior?
Comment 2 Nate Graham 2024-05-09 20:47:39 UTC
Probably. But I'm not sure how to trigger this on demand. Is there a way to do so outside of waiting for a distro upgrade?
Comment 3 Harald Sitter 2024-05-15 10:18:35 UTC
I don't think so.

Maybe running `G_MESSAGES_DEBUG=all /usr/lib/packagekitd -v --backend dummy --disable-timer`  as root, but I think the dummy backend only has very few packages.

If it happens the actual advanced data of the auth dialog would be interesting too.
Comment 4 Nate Graham 2024-05-16 19:02:14 UTC
If you can tell me how to get lots of logging, I can write that down and apply it before my next distro upgrade in 6 months.

Or whenever I stop being lazy and install Fedora 39 in a VM and upgrade to 40.
Comment 5 Harald Sitter 2024-05-17 06:43:50 UTC
Ha! Using an old ISO - genious! I've installed 39 and started an upgrade and indeed it first downloads without auth.

The behavior is consistent with pkcon though, that too downloads without authentication. Like I said, we don't do the auth request, packagekit does.
Comment 6 Nate Graham 2024-05-21 16:41:52 UTC
Ok, so it's a packageKit issue. Opened https://github.com/PackageKit/PackageKit/issues/760 to track that upstream.