Collection Account Setup: skip calling OPTIONS on the calendars when deterimining whether the account has CalDAV service
I start CALDAV_DEBUG=1 CARDDAV_DEBUG=1 WEBDAV_DEBUG=1 evolution-3.39.1
, select File → New → Collection Account, enter as email address aaa@bapha.be → Do only „Look up for a CalDAV/CardDAV server”, enter abc as secret. Evolution makes many HTTP calls, then I complete the setup.
Before I complete the setup, Evolution does:
PROPFIND /dav/principals/user/aaa%40bapha.be on the current-user-principal
from there it obtains the calendar-home-set and addressbook-home-set
PROPFIND /dav/calendars/user/aaa%40bapha.be/ (first returned calendar-home-set) Depth: 1 and asks for displayname, creationdate, getlastmodified, calendar-description, addressbook-description
PROPFIND /dav/calendars/user/k%40bapha.be/ (second returned calendar-home-set) Depth: 1 and asks for displayname, creationdate, getlastmodified, calendar-description, addressbook-description
PROPFIND /dav/calendars/user/aaa%40bapha.be/ (returned addressbook-home-set) Depth: 1 and asks for displayname, creationdate, getlastmodified, calendar-description, addressbook-description, calendar-color
OPTIONS /dav/calendars/user/aaa%40bapha.be/a8fd634e-68cd-4bda-bf5a-02998939448c/ OPTIONS /dav/calendars/user/aaa%40bapha.be/a4040023-ad75-4c87-80b9-05dbe452d895/ OPTIONS /dav/calendars/user/aaa%40bapha.be/Default/ OPTIONS /dav/calendars/user/aaa%40bapha.be/9383fd0a-4a99-4409-8d3b-51e516d945a5/
(no OPTIONS calls on the addressbooks)
After I complete the setup, the “Account Editor” shows the new account, but nothing underneath, so all that information obtained above is discarded and is used solely to say, that for the user there are CalDAV account and CardDAV account. To populate the account editor the above calls are repeated. The same conclusion Evolution makes just by inspecting SRV DNS records.
- Once the account setup procedure determines, that the user has a calendar-home-set and an addressbook-home-set do not make any further HTTP calls, but say, that a CalDAV and CardDAV accounts are found.
The result will be is faster setup procedure.