Description
CalendarHomeSet and ListCalendars coroutines send PROPFIND requests without the Content-Type: text/xml header. Servers that strictly validate this (like Fastmail's Cyrus) return 415 Unsupported Media Type.
Affected files
src/caldav/coroutines/calendar-home-set.rs — line 24: Request::propfind(config, "/") missing .content_type_xml()
src/caldav/coroutines/list-calendars.rs — line 21: Request::propfind(config, "").depth(1) missing .content_type_xml()
Note that current-user-principal.rs already correctly includes .content_type_xml().
Steps to reproduce
- Configure Calendula with Fastmail CalDAV (
caldav.home-uri = "https://caldav.fastmail.com/dav/calendars/user/...")
- Run
calendula calendars list
- Error:
415 Unsupported Media Type: This method requires an XML body
Fix
Add .content_type_xml() to the PROPFIND request builders in both files. PR incoming.
Description
CalendarHomeSetandListCalendarscoroutines send PROPFIND requests without theContent-Type: text/xmlheader. Servers that strictly validate this (like Fastmail's Cyrus) return415 Unsupported Media Type.Affected files
src/caldav/coroutines/calendar-home-set.rs— line 24:Request::propfind(config, "/")missing.content_type_xml()src/caldav/coroutines/list-calendars.rs— line 21:Request::propfind(config, "").depth(1)missing.content_type_xml()Note that
current-user-principal.rsalready correctly includes.content_type_xml().Steps to reproduce
caldav.home-uri = "https://caldav.fastmail.com/dav/calendars/user/...")calendula calendars list415 Unsupported Media Type: This method requires an XML bodyFix
Add
.content_type_xml()to the PROPFIND request builders in both files. PR incoming.