[Tickets #11047] Re: Kolab_Format is not creating/reading contact items

bugs at horde.org bugs at horde.org
Fri Mar 2 15:56:12 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11047
------------------------------------------------------------------------------
  Ticket             | 11047
  Updated By         | alexander.haensch at ipc.uni-tuebingen.de
  Summary            | Kolab_Format is not creating/reading contact items
  Queue              | Kolab
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


alexander.haensch at ipc.uni-tuebingen.de (2012-03-02 15:56) wrote:

> Read/Write Kolab Contact Objects with any data in the 'phone' field fails
> when following the Kolab format specifications.
>
> Horde_Kolab_Format v1.1.1 accepts xml of this kind:
>
> <home1>0123 4567890</home1>
>
> although loading such an xml, results in
> ["phone"]=> 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:
>
> <phone>
>         <type>home1</type>
>         <number>0123 456790</number>
> </phone>
>
> reading or writing a structure like this results in an:
> PHP Fatal error:  Uncaught exception 'Horde_Kolab_Format_Exception'  
> with message 'XML type Horde_Kolab_Format_Xml_PhoneType not  
> supported!' in /usr/share/php5/PEAR/Horde/Kolab/Format/Factory.php:175
>


fixed!



in Horde/Kolab/Format/Xml/Type/Composite/Phone.php

{
     protected $elements = array(
-        'type'   => 'Horde_Kolab_Format_Xml_PhoneType',
-        'number' => 'Horde_Kolab_Format_Xml_String_MaybeMissing',
     );
}

{
     protected $elements = array(
+        'type'   => 'Horde_Kolab_Format_Xml_Type_PhoneType',
+       'number' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
     );
}








More information about the bugs mailing list