6.0.0-git
2019-09-20

[#14944] CardDAV: Bad comma separation for CATEGORIES property, aka tags
Summary CardDAV: Bad comma separation for CATEGORIES property, aka tags
Queue Turba
Queue Version FRAMEWORK_5_2
Type Bug
State Unconfirmed
Priority 2. Medium
Owners
Requester bugs.horde.org (at) ulle (dot) dyndns (dot) org
Created 2019-08-20 (31 days ago)
Due
Updated 2019-08-20 (31 days ago)
Assigned
Resolved
Milestone
Patch No

History
2019-08-20 11:55:34 bugs (dot) horde (dot) org (at) ulle (dot) dyndns (dot) org Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ CardDAV: Bad comma separation for CATEGORIES property, aka tags
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
Reply to this comment
When syncing address book entry via CardDAV Horde is sending the 
CATEGORIES property with wrong separation. Horde internally uses 
categories as tags (or vice versa).

RFC is postulating for CATEGORIES property value: "One or more text 
values separated by a COMMA character"
https://tools.ietf.org/html/rfc6350#section-6.7.1

Horde separates by a comma and a space character.

This misbeavior is coming from function synchronizeTags(array $tags) 
in turba/lib/Object.php
...
$this->setValue('__tags', implode(', ', $tags));
...
https://github.com/horde/turba/blob/master/lib/Object.php#L313

Some CardDAV clients , for example Thunderbird plugin CardBook, adding 
the additional space char to the name of the category . As CardBook is 
using categories for grouping cards, this leads to lots of confusion.

Looking forward to seeing this fixed.

Saved Queries