6.0.0-beta1
7/7/25

[#6046] _save in lib/Horde/Kolab/XML/contact.php fails on address book import
Summary _save in lib/Horde/Kolab/XML/contact.php fails on address book import
Queue Kolab
Type Bug
State Not A Bug
Priority 2. Medium
Owners wrobel (at) horde (dot) org
Requester m.gabriel (at) das-netzwerkteam (dot) de
Created 12/25/2007 (6404 days ago)
Due
Updated 04/01/2008 (6306 days ago)
Assigned 12/25/2007 (6404 days ago)
Resolved 03/26/2008 (6312 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/01/2008 12:39:08 PM m (dot) gabriel (at) das-netzwerkteam (dot) de Comment #3 Reply to this comment
hi gunnar,

[Show Quoted Text - 10 lines]
the problem still persists on my side (with the same example csv 
file)... hopefully, i will find some time to provide more details...



mike
03/26/2008 06:04:19 AM Gunnar Wrobel Comment #2
State ⇒ Not A Bug
Reply to this comment
I fail to reproduce this using the following csv file:



"firstname","lastname","emails"

"test","test",

"test2","test2","test@example.org, testauch@example.org"



Maybe the problem has been resolved in CVS already?



Marking as "not a bug" but please reopen with more details if the 
problem still persists for you.
12/25/2007 08:06:59 PM Michael Rubinsky Assigned to Gunnar Wrobel
State ⇒ Assigned
 
12/25/2007 08:00:27 PM m (dot) gabriel (at) das-netzwerkteam (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ _save in lib/Horde/Kolab/XML/contact.php fails on address book import
Queue ⇒ Kolab
New Attachment: contact-xml.patch Download
State ⇒ Unconfirmed
Reply to this comment
i am using kolab-2.1 (debian unstable) and horde-webmail-1.1rc1



error:

when importing a simple CSV address book (LASTNAME, FIRSTNAME, EMAIL) 
into turba (using kolab driver), the following error occurs (the given 
line number is not correct as it refers to the already patched and 
commented out code):



Notice: Undefined index: full-name in 
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Kolab/XML/contact.php on line 
395



the error occurs in this code snippet:



<snip>

         foreach ($emails as $email) {

             $email = trim($email);

             if (!empty($email)) {

                 $new_email = array('display-name' => 
$object['name']['full-name'],

                                    'smtp-address' => $email);

                 $object['email'][] = $new_email;

             }

         }

</snap>



reason:

when using the example 'kolab' source in turba's sources.php the 
'full-name' key is not an available key in the imported abook object.



solution/workaround:

a patch is attached that might only be regarded as a workaround. 
probably the 'map' array of cfgSources['kolab'] should be evaluated 
instead... (which tells you how to generate a person's 'full-name').




Saved Queries