<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Kolab_Format is not creating/reading contact items </title> 
  <pubDate>Wed, 08 Apr 2026 05:07:38 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11047</link> 
  <atom:link rel="self" type="application/rss+xml" title="Kolab_Format is not creating/reading contact items " href="https://bugs.horde.org/ticket/11047/rss" /> 
  <description>Kolab_Format is not creating/reading contact items </description> 
 
   
   
  <item> 
   <title>Read/Write Kolab Contact Objects with any data in the &#039;phone</title> 
   <description>Read/Write Kolab Contact Objects with any data in the &#039;phone&#039; field fails
when following the Kolab format specifications.

Horde_Kolab_Format v1.1.1 accepts xml of this kind:

&lt;home1&gt;0123 4567890&lt;/home1&gt;

although loading such an xml, results in
[&quot;phone&quot;]=&gt; NULL
in the read object (i.e. the xml is not being read back correctly).


The Kolab specifications for phone field of the body from the xml is:

&lt;phone&gt;
        &lt;type&gt;home1&lt;/type&gt;
        &lt;number&gt;0123 456790&lt;/number&gt;
&lt;/phone&gt;

reading or writing a structure like this results in an:
PHP Fatal error:  Uncaught exception &#039;Horde_Kolab_Format_Exception&#039; with message &#039;XML type Horde_Kolab_Format_Xml_PhoneType not supported!&#039; in /usr/share/php5/PEAR/Horde/Kolab/Format/Factory.php:175
</description> 
   <pubDate>Fri, 02 Mar 2012 08:00:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11047#t70567</link> 
  </item> 
   
  <item> 
   <title>&gt; Read/Write Kolab Contact Objects with any data in the &#039;pho</title> 
   <description>&gt; Read/Write Kolab Contact Objects with any data in the &#039;phone&#039; field fails
&gt; when following the Kolab format specifications.
&gt;
&gt; Horde_Kolab_Format v1.1.1 accepts xml of this kind:
&gt;
&gt; &lt;home1&gt;0123 4567890&lt;/home1&gt;
&gt;
&gt; although loading such an xml, results in
&gt; [&quot;phone&quot;]=&gt; NULL
&gt; in the read object (i.e. the xml is not being read back correctly).
&gt;
&gt;
&gt; The Kolab specifications for phone field of the body from the xml is:
&gt;
&gt; &lt;phone&gt;
&gt;         &lt;type&gt;home1&lt;/type&gt;
&gt;         &lt;number&gt;0123 456790&lt;/number&gt;
&gt; &lt;/phone&gt;
&gt;
&gt; reading or writing a structure like this results in an:
&gt; PHP Fatal error:  Uncaught exception &#039;Horde_Kolab_Format_Exception&#039; 
&gt; with message &#039;XML type Horde_Kolab_Format_Xml_PhoneType not 
&gt; supported!&#039; in /usr/share/php5/PEAR/Horde/Kolab/Format/Factory.php:175
&gt;


fixed!



in Horde/Kolab/Format/Xml/Type/Composite/Phone.php

{
    protected $elements = array(
-        &#039;type&#039;   =&gt; &#039;Horde_Kolab_Format_Xml_PhoneType&#039;,
-        &#039;number&#039; =&gt; &#039;Horde_Kolab_Format_Xml_String_MaybeMissing&#039;,
    );
}

{
    protected $elements = array(
+        &#039;type&#039;   =&gt; &#039;Horde_Kolab_Format_Xml_Type_PhoneType&#039;,
+       &#039;number&#039; =&gt; &#039;Horde_Kolab_Format_Xml_Type_String_MaybeMissing&#039;,
    );
}


</description> 
   <pubDate>Fri, 02 Mar 2012 15:56:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11047#t70571</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit c3c127ba5e7a</title> 
   <description>Changes have been made in Git (master):

commit c3c127ba5e7a2b575a045caed07238ea9bcfb59a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Mar 5 10:25:06 2012 +0100

    [jan] Fix parsing composite phone fields (alexander.haensch@ipc.uni-tuebingen.de, Bug #11047).

 .../Kolab/Format/Xml/Type/Composite/Phone.php      |    4 ++--
 framework/Kolab_Format/package.xml                 |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/c3c127ba5e7a2b575a045caed07238ea9bcfb59a</description> 
   <pubDate>Mon, 05 Mar 2012 09:25:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11047#t70594</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit c3c127ba5e7</title> 
   <description>Changes have been made in Git (develop):

commit c3c127ba5e7a2b575a045caed07238ea9bcfb59a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Mar 5 10:25:06 2012 +0100

    [jan] Fix parsing composite phone fields (alexander.haensch@ipc.uni-tuebingen.de, Bug #11047).

 .../Kolab/Format/Xml/Type/Composite/Phone.php      |    4 ++--
 framework/Kolab_Format/package.xml                 |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/c3c127ba5e7a2b575a045caed07238ea9bcfb59a</description> 
   <pubDate>Mon, 05 Mar 2012 17:48:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11047#t70607</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
