Bug 469398

Summary: Network/VPN password dialog is no longer focused when it appears
Product: [Plasma] plasma-nm Reporter: Jan Molnar <jan.molnar>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor CC: gregor, kde-bugs, kde, mormegil, nate, sitter
Priority: NOR Keywords: regression, usability
Version: 5.27.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Applet and popup

Description Jan Molnar 2023-05-05 20:54:43 UTC
Created attachment 158728 [details]
Applet and popup

SUMMARY
After upgrade to Plasma 5.27, on selecting connection (VPN, Wi-Fi...), popup to insert password is not focused, so the password cannot be inserted right away, but the popup has to be found and focused manually. Please focus it on open. (Used to be focused prior to 5.27.)


STEPS TO REPRODUCE
1. Click Networks applet to display list of connections
2. Click "Connect" on connection (VPN, Wi-Fi...) which requires password

OBSERVED RESULT
Password dialog is displayed on top, but not focused.

EXPECTED RESULT
Password dialog is focused as well.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.10 (KDE backports) and newer
KDE Plasma Version:  5.27 and newer
KDE Frameworks Version: 5.104
Qt Version: 5.15.8
Comment 1 Jan Molnar 2023-05-12 07:33:08 UTC
Although bug 312325 was logged because of something different (dialog displayed behind something – here it is on top), bug 312325, comment 28 mentions this issue as well, so it can get possibly fixed as well. (It also points to auth dialog, not to nm applet.)
Comment 2 Nate Graham 2023-05-15 18:45:58 UTC
When I click on the Connect button, a password field opens inline. How are you getting a dialog instead?
Comment 3 Jan Molnar 2023-05-16 08:11:57 UTC
I see the inline password only for connections I have not used, for those having checked "ask for this password every time", I see the dialog (see the screenshot in attachment 158728 [details]).

I have just updated to Plasma 5.27.5 and the issue has not disappeared, so this issue seems to be independent on bug 312325.

Thank you.
Comment 4 Nate Graham 2023-05-16 15:37:59 UTC
Thanks, can reproduce the issue now. Looks like the window has the "keep on top" flag set, but this isn't enough to make it get focus. Perhaps it needs the same fix as in https://invent.kde.org/plasma/polkit-kde-agent-1/-/commit/239ec8537b88f57ec1366b4121d14a4655581ac9.
Comment 5 Nate Graham 2023-05-19 20:21:44 UTC
*** Bug 470004 has been marked as a duplicate of this bug. ***
Comment 6 Petr Kadlec 2023-05-20 07:53:25 UTC
Just to help searchability of this issue so somebody else need not create a dupe like me :-): the dialog in question is captioned “VPN secrets (l2tp) dialog — KDE Daemon”. (And thanks for the merge, Nate.)
Comment 7 Jan Molnar 2023-05-21 16:23:27 UTC
Mine titles are "VPN secrets (openvpn) dialog — KDE Daemon" and "Wi-Fi password dialog — KDE Daemon" if it helps the search engines.

I am not sure "product" and other bug attributes are correct, I just tried to select something. Anyway, thank you for taking care of it.
Comment 8 Marc Sluiter 2023-08-14 08:45:39 UTC
Hi, any news on this? IMHO it's even a security issue, because when the dialog isn't focused, and the user doesn't notice, the user will type the password to whatever has focus. For me it's the terminal where I run a script which connects to a VPN, so the password is visible to everyone looking at the screen at that moment.
Comment 9 Jan Molnar 2023-11-10 13:03:45 UTC
The issue seems to be gone. Probably after update to 5.27.9. Could anyone confirm it please?
Comment 10 Phil O 2023-11-10 13:30:14 UTC
Yes, looks like 5.27.9 has fixed the problem.
Comment 11 Phil O 2023-11-10 13:35:31 UTC
Seems this bug is a duplicate of bug 465751, where this was fixed.
Comment 12 Jan Molnar 2023-11-10 13:41:51 UTC
It truly is a duplicate of bug 465751 which describes only a single issue instance. Thank you.

*** This bug has been marked as a duplicate of bug 465751 ***