question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Differences in CardDAV encoding/decoding of phone number characteristics; TbSync vs. Nextcloud formatting

See original GitHub issue

Your environment

TbSync version: 1.7 DAV-4-TbSync version: 0.15 Thunderbird version: 60.7.0

[X] Yes, I have installed the latest available (beta) version from

Expected behavior

  1. TB phone number “mobile work” should be mapped to “mobile work” in Nextcloud (current stable version)
  2. TB phone number “mobile private” should be mapped to “mobile private” in NC

Actual behavior

In NC this entries like described show 1. “mobile” (“work” missing) and 2. “work” (“mobile” missing) I downloaded the VCF in Nextcloud:

  1. Written from TbSync: TEL;TYPE=HOME;TYPE=CELL:... I changed it in Nextcloud to the correct entry. CardDAV:TEL;TYPE="HOME,CELL":... After the next sync TB shows no characteristics of the numbers in both examples 1. and 2. (they are not lost, but obviously could not be interpreted from TbSync).
  2. Same problems on both sides.

As I understood this, TbSync writes this single appended TYPE=HOME;TYPE=CELL syntax. Nextcloud saves this and syncs correctly to other TbSync clients but Nextcloud itself expects the joined TYPE="HOME,CELL" format, can’t decode the TbSync written thing and writes in the joined format.

Which one is right? Standard? Both? If both are correct syntax, TbSync must interpret the NC syntax and NC the TbSync syntax. Quick solution: Change you format to the NC format if you detect a NC instance. (In addition to correctly decode the NC format. If not both are correct, who should correct it?

Steps to reproduce

  • Add dummy entries with different settings out of numbers tagged with “work”, “mobile work”, “private”, “mobile private”, …
  • Sync
  • Compare Nextcloud web interface (contacts app) to VCF/Database

Thanks!! Great sync adapter.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jobisoftcommented, May 22, 2019

No need to be sorry. 😃 I think that „bug“ was filed just via E-Mail, not as an issue. I do not remember, it was a lengthy process and at the end I switched. Both styles are correct, as far as I know.

If you want to switch to beta, you must switch TbSync itself and all provider you are using.

0reactions
dilyanpalauzovcommented, Sep 22, 2019

Both formats are valid:

vCard MIME Directory Profile 3.3.1 TEL Type Definition says:

These type parameter values can be specified as a parameter list (i.e., “TYPE=work;TYPE=voice”) or as a value list (i.e., “TYPE=work,voice”).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Synchronizing with Thunderbird - Nextcloud Documentation
In the next window, TBSync should have autodiscovered the CalDAV and CardDAV addresses. When it has, click Finish. Now check the box Enable...
Read more >
TbSync for Thunderbird 102 · Issue #591 - GitHub
So when updating to 102 no add-on to sync to the Nextcloud CalDAV/CardDAV entries is needed? Or are there feature support differences ......
Read more >
Documentation – Caldavsynchronizer
Each profile is responsible for synchronizing one Outlook calendar/task or contact folder with a remote folder of a CalDAV/CardDAV server.
Read more >
Provider for CalDAV & CardDAV 4.3 - Thunderbird Add-ons
Including iCloud, ownCloud, Nextcloud, Radicale and many more. ... CalDAV & CardDAV sync and this provider for TbSync is technically no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found