Bug 205742 - Spaces in a directory name create an empty VCard Directory Address Book.
Summary: Spaces in a directory name create an empty VCard Directory Address Book.
Status: VERIFIED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 00:38 UTC by Sabine Faure
Modified: 2009-09-04 19:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2009-08-31 00:38:53 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

- Configure Akonadi with an IMAP and Kolab resource.
- Launch Kaddressbook
- Go to File menu/New/Add Address Book...
- Select the 'VCard Directory' feature in the 'Add Address Book' dialogue.
- Browse and select a directory containing Vcard files and at least one space in its name (ex: Vcard Files)
- Click on 'Ok'
- An 'akonadi_vcarddir_resource_1' address book is created in Kaddressbook.

However it is empty. None of the Contacts that were in the Vcard directory appear in the 'Name' column of Kaddressbook.

If you open Konqueror and browse to find 'Vcard Files' Directory you can see that there is another directory called 'VCard%20Files' that has been created next to it.

If you remove the space from the original 'VCard Files' (ex: VCardFiles) and select it as a new address book, then it works. An 'Akonadi_vcarddir_resource_2' address book is displayed in Kaddressbook and in it there are all the Contacts from 'VCardFiles'.

Trunk, Svn Rev 1016607
Comment 1 Tobias Koenig 2009-09-03 19:23:58 UTC
SVN commit 1019460 by tokoe:

Use a file name instead of a URL for the base path.

BUG: 205742


 M  +3 -3      settingsdialog.cpp  
 M  +3 -3      vcarddirresource.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1019460
Comment 2 Sabine Faure 2009-09-04 19:43:02 UTC
This is corrected now.

It works with directory names containing spaces now.

Trunk, Svn Rev 1019588