6.0.0-RC7
6/28/26

[#12782] vCard export via CardDAV interface contains properties with empty values violating the spec
Summary vCard export via CardDAV interface contains properties with empty values violating the spec
Queue Turba
Queue Version 4.1.2
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester ralf (at) kruedewagen (dot) de
Created 10/22/13 (4632 days ago)
Due
Updated 6/5/14 (4406 days ago)
Assigned
Resolved 1/27/14 (4535 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
479 nino (at) promedia-sds (dot) de Comment #13 Reply to this comment
This fix solves the issue for me. Thank you very much!
399 Git Commit Comment #12 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_1):

commit aecb91e6b93e4e3feb770afa5b6498000de3f667
Author: Jan Schneider <jan@horde.org>
Date:   Wed Jun 4 11:03:17 2014 +0200

     Fix not outputting empty properties to CarDAV (Bug #12782).

  turba/lib/Application.php |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/aecb91e6b93e4e3feb770afa5b6498000de3f667
449 Git Commit Comment #11 Reply to this comment
Changes have been made in Git (master):

commit 6248e91edd4417920c9dc59cc6c99f04246d1fa7
Author: Jan Schneider <jan@horde.org>
Date:   Wed Jun 4 11:03:17 2014 +0200

     Fix not outputting empty properties to CarDAV (Bug #12782).

  turba/lib/Application.php |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/6248e91edd4417920c9dc59cc6c99f04246d1fa7
489 nino (at) promedia-sds (dot) de Comment #10 Reply to this comment
I can also confirm that the fix solved the problem for webDAV but 
unfortunately not for cardDAV.
This issue also affects the Android CardDAV sync adapter DAVdroid.

Please see here for details:
https://github.com/rfc2822/davdroid/issues/226
226 play (at) bitfire (dot) at Comment #9 Reply to this comment
This issue also affects the Android CardDAV sync adapter DAVdroid.

Please see here for details:
https://github.com/rfc2822/davdroid/issues/226
449 Git Commit Comment #8 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_1):

commit f4174df99db92e02a1a8137219978eb5579a4201
Author: Jan Schneider <jan@horde.org>
Date:   Mon Mar 31 11:31:20 2014 +0200

     [mjr] Don't output empty properties for CardDav requests (Bug #12782).

  turba/docs/CHANGES |    1 +
  turba/package.xml  |    2 ++
  2 files changed, 3 insertions(+), 0 deletions(-)

http://github.com/horde/horde/commit/f4174df99db92e02a1a8137219978eb5579a4201
399 Git Commit Comment #7 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_1):

commit 738ce25ef601182e4c009f2f34f9155bdba38952
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Mon Jan 27 16:56:48 2014 -0500

     Don't output empty properties for CardDav requests. Bug: 12782

  turba/lib/Api.php |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/738ce25ef601182e4c009f2f34f9155bdba38952
161 Michael Rubinsky Comment #6 Reply to this comment
So was this included in the 4.1.4 or not? I still see the bug...
No, it looks like it wasn't merged from the master branch (which will be 4.2).
448 mehmet (at) giritli (dot) eu Comment #5 Reply to this comment
So was this included in the 4.1.4 or not? I still see the bug...
78 ralf (at) kruedewagen (dot) de Comment #4 Reply to this comment
Why was this patch not integrated to the recently released Turba H5 (4.1.4)?
810 Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Resolved
 
4810 Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 4840a591ea959d2775640a7e16ee113209aac50c
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Mon Jan 27 16:56:48 2014 -0500

     Don't output empty properties for CardDav requests. Bug: 12782

  turba/lib/Api.php |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/4840a591ea959d2775640a7e16ee113209aac50c
159 linux (at) wolke7 (dot) net Comment #2 Reply to this comment
I also use this carddav sync-adapter on android phone. In addition to 
the 1970-01-01 birthday I get an 1970-01-01 ANNIVERSARY when no date 
specified.
Version installed: Horde 5.1.5

[Show Quoted Text - 57 lines]
371 ralf (at) kruedewagen (dot) de Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ vCard export via CardDAV interface contains properties with empty values violating the spec
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
When sending contact data to a CardDAV client, Horde 5 creates files like:

####################
BEGIN:VCARD
VERSION:3.0
UID:20131018104100.uYYOysmgwqS6tRPiYvf9wA1@domain.de
NICKNAME:
X-EPOCSECONDNAME:
BDAY:
X-ANNIVERSARY:
X-SPOUSE:
PHOTO:
TZ;VALUE=text:
EMAIL;TYPE=INTERNET:
TEL;TYPE=HOME,VOICE:
TEL;TYPE=FAX,HOME:
TEL;TYPE=WORK,VOICE:
TEL;TYPE=CELL,VOICE:
TEL;TYPE=FAX:
TEL;TYPE=PAGER:
TITLE:
ROLE:
LOGO:
CATEGORIES:Business
NOTE:Eine Notiz
URL:
X-WV-ID:
N:ABC AG;;;;
FN:ABC AG
ORG:ABC AG;
ADR;TYPE=HOME:;;;;;;
ADR;TYPE=WORK:;;;;;;
END:VCARD
####################

There are many properties like BDAY (birthday) which have no value 
assigned. This confuses some CardDAV sync clients like the well known 
CardDAV-Sync app http://dmfs.org/carddav/. This sync clients sets 
"01.01.1970" as birthday, which results in getting many wrong calendar 
entries on Jan 1st.

According to discussions with the app developer and my own research on 
common vCard file style, fields like "BDAY" must have a proper 
property value assigned if they are given at all. The ABNF does 
explicitly say that the value must be "date-value" or 
"date-time-value" (not optional, i.e. not empty).

See specs:
http://tools.ietf.org/html/rfc2426#page-31
http://tools.ietf.org/html/rfc6350

Remark: Manual vCard exports of the address book do not contain those 
properties with empty values. So, this is probably just related to the 
CardDAV interface.

So, please just export properties which have a value (like the regular 
address book export already does).

Saved Queries