Below is a high-level, simplified run-through of RFC 6352 (“CardDAV”), which defines how to store, manage and share vCard-based address books over WebDAV.
1. What is CardDAV?
CardDAV is an extension to WebDAV (which itself extends HTTP) that:
- Defines address‐book collections as special WebDAV folders
- Stores each contact as a vCard object (typically
.vcf files)
- Provides WebDAV methods and reports for creating, retrieving, updating, deleting and querying contacts
In short: it turns your web server into a contact-management server, with a standard protocol so clients can interoperate.
2. Purpose of RFC 6352
- Standardize contact storage
– So any CardDAV-aware client (phones, mail apps, CRMs) can talk to any CardDAV-aware server.
- Leverage existing WebDAV
– Reuse authentication, locking, namespace handling.
- Enable queries & notifications
– Let clients ask “give me all contacts whose last name starts with ‘Sm’” or subscribe to changes.
3. Key Concepts & Terminology
| Term | Meaning |
|---|
| Address Book | A WebDAV collection resource whose members are vCard object resources. |
| vCard Object | A file/resource containing one vCard (RFC 6350) per contact. |
| ADDRESSBOOK Principal | A user or group that owns or has access to address-book collections. |
| REPORT | A WebDAV mechanism to run queries or get change logs. |
| Multistatus (207) | Combined response format for many resource-level results. |
4. Core Requirements for Implementers
(All sections refer to WebDAV Semantics [RFC 4918] unless noted.)
-
Server Must-Haves
- Support for basic WebDAV methods:
PROPFIND, REPORT, MKCOL, GET, PUT, DELETE
- Define an
addressbook resource type (using <D:collection/><card:addressbook/>)
- Store vCards in version 3.0 or 4.0 format; ensure each has a unique
UID property
-
Client Must-Haves
- Discover available address books via
PROPFIND on a user’s principal URL
- Use
REPORT (e.g. addressbook-query, addressbook-multiget) to fetch subsets or individual vCards
- Handle WebDAV locking if doing concurrent updates
-
Data Integrity
- On
PUT, validate incoming vCard syntax per RFC 6350
- Preserve unknown properties (clients and servers mustn’t strip extensions they don’t understand)
-
Change Tracking & Sync
- Support WebDAV’s
sync-collection REPORT for incremental sync, driven by server-maintained change tokens
5. Typical Client-Server Flow
- Discovery
- Client does
PROPFIND on user principal to find addressbook-home-set.
- Listing
PROPFIND on the addressbook collection to list vCard URLs and metadata (e.g. getetag, getlastmodified).
- Fetching Contacts
GET a single .vcf or
addressbook-query REPORT to filter (e.g. by FN or EMAIL).
- Creating/Updating
PUT /addressbooks/alice/contacts/john.vcf with a complete vCard payload.
- Synchronizing
REPORT sync-collection with last‐seen sync token → server returns only adds/changes/deletions.
6. Security & Access Control
- Relies on WebDAV’s ACL and HTTP auth (Basic, Digest, OAuth, TLS client certs, etc.)
- Servers SHOULD enforce per-address-book ACLs so that “Bob” can’t read “Alice”’s private contacts
7. Why It Matters
- Interoperability: Any CardDAV-compliant client/server can exchange address books.
- Extensibility: New vCard properties or custom address book behavior can be layered on without breaking the core.
- Ecosystem: Widely supported by smartphones, desktop mail apps, groupware servers.
—
In essence, RFC 6352 turns plain Files-on-HTTP into a rich, queryable, rights-managed contact database using WebDAV’s proven foundation.