Bug 330380

Summary: dialog box for authentication with root p/w doesn't appear on top when configuring WiFi connection
Product: [Unmaintained] Network Management Reporter: uc
Component: WirelessAssignee: Lamarque V. Souza <lamarque>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jgrulich
Priority: NOR    
Version: 0.9   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screen shot of authorization dialog behind the NetMngr window

Description uc 2014-01-25 00:24:13 UTC
Turned off kwallet, but not before networkmanager wanted to save the root p/w there when configuring a system for the first time with a WiFi connection.  Now most times when I manage connections I have to enter the p/w again (which I don't mind) but the dialog box almost never appears on top--it is most often just behind the NM config dialog box (both are centered on screen) but sometime I can't find it.  Then the attempt to config times out and changes are lost.  

Reproducible: Always

Steps to Reproduce:
1.open NM widget to config a WiFi connection.  
2 select WL connection and click on Edit
3. look for the dialog box to enter root p/w

4. after changing config, go to save,
5.  Look for dialog box, usually back one layer (visible if I move the NM box aside).
Actual Results:  
Just migrated from openSuse 12.3 to 13.1.  Performed all on-line updates.  Successfully configured both Enet and WiFi connections on same notebook and two servers.  

The network connection via WiFi became a problem after I converted some DHCP devices to static IPs. Would not connect,  Reconfigured the NM (both through Yast and the NM widget) back to DHCP.  Had trouble because I couldn't always find the dialog box to enter the p/w before NM timed out.  

Often NM shows a WiFI connection but no IPs and a message "waiting for authorization"

Expected Results:  
New dialog boxes should be visible when they pop up and not hidden behind existing windows.

NetworkManager ver 0.9.8.8-1.1
Connecting to ActionTech router on Verizon FIOS service, 802.11n at 2.4 GHz channel 1  (no other routers in the area on that channel)
WLAN Interface page says "IPv4 Gateway:  No IP gateway" (both when operating on DHCP or with a static IP)
Comment 1 Lamarque V. Souza 2014-01-25 15:31:13 UTC
This is issue for kwin to solve. Actually, kwin's developers pushed a commit [1] to kwallet 4.10.0 some time go to solve issues like this one. The discussion about the patch is in [2].

What KDE versions are used in OpenSuse 12.3 and 13.1? Does that also happen in 12.3?

[1] https://git.reviewboard.kde.org/r/105628/
[2] http://lists.kde.org/?l=kde-telepathy&m=134304304030116&w=2
Comment 2 uc 2014-01-25 20:23:50 UTC
in openSuse 13.1 the KDE version is 0.9.0.10-2.8.1
At this time I've migrated all machines away from openSuse 12.3 so can't look up that version.
Still have a oS 12.2 running which runs KDE 0.9.0.2-2.4.1
As I recall, this problem occured in 12.3. 

The discussion [2] seems focused on kwallet, but I've disabled kwallet so I'm not clear on how those comments apply.
Comment 3 Lamarque V. Souza 2014-02-05 20:07:32 UTC
(In reply to comment #2)
> in openSuse 13.1 the KDE version is 0.9.0.10-2.8.1
> At this time I've migrated all machines away from openSuse 12.3 so can't
> look up that version.
> Still have a oS 12.2 running which runs KDE 0.9.0.2-2.4.1
> As I recall, this problem occured in 12.3. 
> 
> The discussion [2] seems focused on kwallet, but I've disabled kwallet so
> I'm not clear on how those comments apply.

Nope, the discussion is about making modal dialogs popping up in front all other opened windows. kwallet is just one of the most important examples, but it not the only one. Your particular problem seems related to PolKit's dialog, which is talked about later in the thread  [2].

The point is that this bug has nothing to do with Plasma NM. It seems more related to kwin or polkit-kde-agent than with Plasma NM. Can you send me a screenshot of the dialog in question?

PS: non-kwallet configurations are going to be removed from Frameworks 5 (next major KDE version).
Comment 4 uc 2014-02-05 21:29:59 UTC
Created attachment 85013 [details]
screen shot of authorization dialog behind the NetMngr window

As requested, here's a screen shot of the authorization dialog that comes up when editing a network connection.  I moved the NM window to reveal the dialog box, which comes up centered behind the NM window.  The smallest box, in front, comes up when the authorization isn't completed promptly--and it usually comes up on top.
Comment 5 Lamarque V. Souza 2014-02-05 22:11:42 UTC
The "System policy prevents..." dialog belongs to polkit-kde-agent. Read comment [1] for a workaround for this bug.

[1] https://bugs.kde.org/show_bug.cgi?id=312325#c3

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