Bug 271341

Summary: Akonadi can not be used at the same time by two users on Windows
Product: [Frameworks and Libraries] Akonadi Reporter: Andre Heinecke <aheinecke>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Andre Heinecke 2011-04-20 11:03:59 UTC
Version:           4.6 (using Devel) 
OS:                MS Windows

If you have akonadi running and lock your session on Windows allowing another user to log in while your processes are still alive or if you try to use akonadi on a server with multiple users several problems occur:

If the second user does not have read access on the first users home folder Akonadi startup crashes for the second user.

If the second user has access to the first users home directory a second akonadiserver starts and Kontact is able to show the imap ressource of the first user but is not showing the first users smtp ressource.
In akonadiconsole only the ressources of the second user are shown.


There is more debugging on this necessary and i do not have a backtrace of the crash because of running a release build.

Reproducible: Always
Comment 1 Andre Heinecke 2011-09-02 15:39:43 UTC
Git commit c74d0331ad647f388ac8afa824221dabea0fe4af by Andre Heinecke.
Committed on 02/09/2011 at 12:54.
Pushed by aheinecke into branch 'master'.

Fix akonadi multiuser on Windows

    When two users tried to start an akonadiserver on Windows
    the default NamedPipe conflicted causing akonadi to crash.

    With this patch the NamedPipe will include the Windows Username
    to avoid such conflicts.

    Tested to work with Spaces and special characters in the Username.

    BUG: 271341

M  +41   -1    server/src/akonadi.cpp

http://commits.kde.org/akonadi/c74d0331ad647f388ac8afa824221dabea0fe4af
Comment 2 Volker Krause 2011-09-15 17:13:41 UTC
Git commit 8dc5aba78517109f003156c573e5f4e120c13c50 by Volker Krause, on behalf of Andre Heinecke.
Committed on 02/09/2011 at 12:54.
Pushed by vkrause into branch '1.6'.

Fix akonadi multiuser on Windows

    When two users tried to start an akonadiserver on Windows
    the default NamedPipe conflicted causing akonadi to crash.

    With this patch the NamedPipe will include the Windows Username
    to avoid such conflicts.

    Tested to work with Spaces and special characters in the Username.

    BUG: 271341

M  +41   -1    server/src/akonadi.cpp

http://commits.kde.org/akonadi/8dc5aba78517109f003156c573e5f4e120c13c50