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 |
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
State ⇒ Resolved
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
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',
);
}
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kolab
Summary ⇒ Kolab_Format is not creating/reading contact items
Type ⇒ Bug
State ⇒ Unconfirmed
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