Bug 250554

Summary: Akonadi error messages when no network connection
Product: [Frameworks and Libraries] Akonadi Reporter: jamese <james.ellis>
Component: GoogleData ResourceAssignee: Adenilson Cavalcanti <savagobr>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ashl1future, kdepim-bugs, vkrause
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: example dialogue box error message

Description jamese 2010-09-08 13:18:44 UTC
Created attachment 51421 [details]
example dialogue box error message

Version:           4.5 (using KDE 4.5.0) 
OS:                Linux

When there is no network connection, Akonadi tries to contact the configured calendar & contacts resource and errors out in the process. This results in dialogue boxes appearing on the screen

e.g "akonadi_googledata_resource_3 - Invalid password or network proxy."

When the network is reconnected, the dialogues no longer appear.

If you suspend a laptop, the dialogue box appears just prior to suspend. Resuming from suspend and there are usually about 8 dialogues in the task bar all containing the same information.

Can the Akonadi error messages be supressed, or be transferred to the system tray notification system? Alternatively, Akonadi should just detect that there is no network connection and not bother trying to connect to the remote resources in the first place.

Note that I use the Gnome network manager applet (nm-applet) to manage the network as the KDE network manager doesn't work with my Mobile Broadband account.


Thanks!

Reproducible: Always

Steps to Reproduce:
Can be reproduced by
1. Start computer
2. Akonadi will ask for a wallet password & nm-applet will ask for a keyring password (if you are using it)
3. Multiple dialogues boxes will appear during this time, even when typing in the passwords or waiting for network to configure.

Also
1. Suspend the computer
2. A dialogue will appear before going to suspend state
3. Resume from suspend
4. Generally about 6 dialogues containing the "Invalid password or network proxy." will then be in the task bar.


Actual Results:  
Akonadi shouldn't try to contact a remote resource when there is no network configured. If it does, then it shouldn't be so noisy about failures and one error message in the system tray notification area will suffice.

Expected Results:  
Wait until the network is configured, then try to connect, then if the connection fails push a message to the system tray notification handler, rather than bombarding the desktop with multiple dialogues containing the same information that the user has to close.

The dialogue boxes just contribute to noise that gets in the way of using KDE software.
Comment 1 Alexey Shildyakov 2010-09-11 09:43:45 UTC
Maybe duplicate if bug 247615
Comment 2 jamese 2010-10-07 12:01:30 UTC

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