Bug 238996

Summary: Kaddressbook gets confused by XML element order in Kolab files
Product: [Frameworks and Libraries] Akonadi Reporter: bugs
Component: Kolab ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description bugs 2010-05-27 12:34:48 UTC
Version:           unspecified (using KDE 4.4.3) 
OS:                Linux

I'm writting on a synchronisation program to sync Android with Kolab and while writing the kolab.xml files containing the contact information, i noticed Kaddressbook sometimes not showing all contact information.

It turned out that, if between the </phone> and <email> there are other xml tags, Kaddressbook doesnt show all information of the contact that is in the XML file.

Maybe that is an issue of assuming a certain order of the elements and it might also occour in different element constellations.

Reproducible: Always

Steps to Reproduce:
Create a kolab contact with a tag inbetween phone and email, for example:
</phone>
<birthday>1970-12-24</birthday>
<email>

Actual Results:  
Kaddressbook does not show email adresses (maybe other information of that contact are also missing)

Expected Results:  
kaddressbook should ignore the element order and just parse all elements it supports and show them.
Comment 1 Volker Krause 2010-06-24 10:39:47 UTC
SVN commit 1142156 by vkrause:

While I'm at it, add a unit test for bug 238996, works fine.

BUG: 238996


 A             bug238996.vcf  
 A             bug238996.vcf.mime  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1142156