6.0.0-beta1
7/8/25

[#11047] Kolab_Format is not creating/reading contact items
Summary Kolab_Format is not creating/reading contact items
Queue Kolab
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester alexander.haensch (at) ipc (dot) uni-tuebingen (dot) de
Created 03/02/2012 (4876 days ago)
Due
Updated 03/05/2012 (4873 days ago)
Assigned
Resolved 03/05/2012 (4873 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/05/2012 05:48:16 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (develop):

commit c3c127ba5e7a2b575a045caed07238ea9bcfb59a
Author: Jan Schneider <jan@horde.org>
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
03/05/2012 09:26:01 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
03/05/2012 09:25:23 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit c3c127ba5e7a2b575a045caed07238ea9bcfb59a
Author: Jan Schneider <jan@horde.org>
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
03/02/2012 03:56:11 PM alexander (dot) haensch (at) ipc (dot) uni-tuebingen (dot) de Comment #2 Reply to this comment

[Show Quoted Text - 24 lines]
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',
     );
}



03/02/2012 08:00:51 AM alexander (dot) haensch (at) ipc (dot) uni-tuebingen (dot) de Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kolab
Summary ⇒ Kolab_Format is not creating/reading contact items
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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

Saved Queries