home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.43k stars 30.67k forks source link

CalDAV is not downloading CalDAV file #125499

Closed Marco4223 closed 1 month ago

Marco4223 commented 1 month ago

The problem

Hi, I'm trying to use the CalDAV Addon to download a calender from an IServer for the Shool of my son. When I try to download the CalDAV file in the browser everything works fine. When I try this with the CalDAV Addon I got an empty body as response.

What version of Home Assistant Core has the issue?

2024.9.1

What was the last working version of Home Assistant Core?

2024.9.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

CalDAV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav

Diagnostics information

...
2024-09-08 09:44:07.498 DEBUG (SyncWorker_56) [caldav] server responded with 207 Multi-Status
2024-09-08 09:44:07.498 DEBUG (SyncWorker_56) [caldav] response headers: {'Date': 'Sun, 08 Sep 2024 07:44:07 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '456', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"cba1947edddf7b68dc5df2ad575ee6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-08 09:44:07.498 DEBUG (SyncWorker_56) [caldav] response status: 0
2024-09-08 09:44:07.499 DEBUG (SyncWorker_56) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[USERNAME]/home/</href>\n    <propstat>\n      <prop>\n        <C:supported-calendar-component-set>\n          <C:comp name="VEVENT"/>\n          <C:comp name="VTODO"/>\n          <C:comp name="VJOURNAL"/>\n        </C:supported-calendar-component-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-08 09:44:07.499 DEBUG (SyncWorker_56) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[USERNAME]/home/</href>\n  <propstat>\n   <prop>\n    <C:supported-calendar-component-set>\n     <C:comp name="VEVENT"/>\n     <C:comp name="VTODO"/>\n     <C:comp name="VJOURNAL"/>\n    </C:supported-calendar-component-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-08 09:44:07.502 DEBUG (SyncWorker_36) [caldav] sending request - method=REPORT, url=[THE SERVER URL], headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/xml; charset="utf-8"', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
2024-09-08 09:44:07.532 DEBUG (SyncWorker_2) [caldav] server responded with 207 Multi-Status
2024-09-08 09:44:07.532 DEBUG (SyncWorker_2) [caldav] response headers: {'Date': 'Sun, 08 Sep 2024 07:44:07 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '456', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"cba1947edddf7b68dc5df2ad575ee6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-08 09:44:07.532 DEBUG (SyncWorker_2) [caldav] response status: 0
2024-09-08 09:44:07.533 DEBUG (SyncWorker_2) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[USERNAME]/home/</href>\n    <propstat>\n      <prop>\n        <C:supported-calendar-component-set>\n          <C:comp name="VEVENT"/>\n          <C:comp name="VTODO"/>\n          <C:comp name="VJOURNAL"/>\n        </C:supported-calendar-component-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-08 09:44:07.533 DEBUG (SyncWorker_2) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[USERNAME]/home/</href>\n  <propstat>\n   <prop>\n    <C:supported-calendar-component-set>\n     <C:comp name="VEVENT"/>\n     <C:comp name="VTODO"/>\n     <C:comp name="VJOURNAL"/>\n    </C:supported-calendar-component-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-08 09:44:07.535 DEBUG (SyncWorker_20) [caldav] sending request - method=REPORT, url=[THE SERVER URL], headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/xml; charset="utf-8"', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
2024-09-08 09:44:07.668 DEBUG (SyncWorker_36) [caldav] server responded with 207 Multi-Status
2024-09-08 09:44:07.668 DEBUG (SyncWorker_36) [caldav] response headers: {'Date': 'Sun, 08 Sep 2024 07:44:07 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '68', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"07474790757c5e1b526ce4901889d6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-08 09:44:07.668 DEBUG (SyncWorker_36) [caldav] response status: 0
2024-09-08 09:44:07.669 DEBUG (SyncWorker_36) [caldav] b'<multistatus xmlns="DAV:"/>\n'
2024-09-08 09:44:07.669 DEBUG (SyncWorker_36) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:"/>\n'
2024-09-08 09:44:07.670 DEBUG (MainThread) [homeassistant.components.caldav.coordinator] No matching event found in the 0 results for [NAME] calendar
2024-09-08 09:44:07.671 DEBUG (MainThread) [homeassistant.components.caldav.coordinator] Finished fetching CalDAV [NAME] calendar data in 0.171 seconds (success: True)
2024-09-08 09:44:07.701 DEBUG (SyncWorker_20) [caldav] server responded with 207 Multi-Status
2024-09-08 09:44:07.701 DEBUG (SyncWorker_20) [caldav] response headers: {'Date': 'Sun, 08 Sep 2024 07:44:07 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '68', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"07474790757c5e1b526ce4901889d6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-08 09:44:07.701 DEBUG (SyncWorker_20) [caldav] response status: 0
2024-09-08 09:44:07.701 DEBUG (SyncWorker_20) [caldav] b'<multistatus xmlns="DAV:"/>\n'
2024-09-08 09:44:07.701 DEBUG (SyncWorker_20) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:"/>\n'

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

caldav documentation caldav source

Marco4223 commented 1 month ago

Thx bot to show me the Docu but that dosen't help me.

FitziCJ commented 1 month ago

I do have the same issue with IServ. I'm using Home Assistant Core 2024.8.2. I need to say, that this is my initial installation, I never used the caldav integration before.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.8.2

What type of installation are you running?

Home Assistant

Integration causing the issue

CalDAV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav

Diagnostic information


``` `2024-09-11 21:00:20.263 DEBUG (MainThread) [caldav] url: https://[IServ-Server.de]/caldav/+public/calendar
2024-09-11 21:00:20.264 DEBUG (MainThread) [caldav] self.url: https://[IServ-Server.de]/caldav/+public/calendar
2024-09-11 21:00:20.267 DEBUG (SyncWorker_29) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/+public/calendar, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:current-user-principal/></D:prop></D:propfind>
2024-09-11 21:00:20.403 DEBUG (SyncWorker_29) [caldav] server responded with 401 Unauthorized
2024-09-11 21:00:20.404 DEBUG (SyncWorker_29) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/plain; ; charset="utf-8"', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'IServ', 'WWW-Authenticate': 'Basic realm="IServ DAViCal Server"', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.404 DEBUG (SyncWorker_29) [caldav] response status: 0
2024-09-11 21:00:20.404 DEBUG (SyncWorker_29) [caldav] b'Please log in for access to this system.'
2024-09-11 21:00:20.404 DEBUG (SyncWorker_29) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/+public/calendar, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:current-user-principal/></D:prop></D:propfind>
2024-09-11 21:00:20.499 DEBUG (SyncWorker_29) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.499 DEBUG (SyncWorker_29) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '345', 'Connection': 'keep-alive', 'Server': 'IServ', 'Content-Location': '/caldav/%2Bpublic/calendar/', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"c55d7d8f6098cf33caebc9e8895e5ab4"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.499 DEBUG (SyncWorker_29) [caldav] response status: 0
2024-09-11 21:00:20.500 DEBUG (SyncWorker_29) [caldav] b'<multistatus xmlns="DAV:">\n  <response>\n    <href>/caldav/%2Bpublic/calendar/</href>\n    <propstat>\n      <prop>\n        <current-user-principal>\n          <href>/caldav/caldav.php/[Username]/</href>\n        </current-user-principal>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.500 DEBUG (SyncWorker_29) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:">\n <response>\n  <href>/caldav/%2Bpublic/calendar/</href>\n  <propstat>\n   <prop>\n    <current-user-principal>\n     <href>/caldav/caldav.php/[Username]/</href>\n    </current-user-principal>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.504 DEBUG (SyncWorker_12) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-home-set/></D:prop></D:propfind>
2024-09-11 21:00:20.505 DEBUG (SyncWorker_37) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-home-set/></D:prop></D:propfind>
2024-09-11 21:00:20.589 DEBUG (SyncWorker_12) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.589 DEBUG (SyncWorker_12) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '385', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"dacfb9d374a83f731e25b0b04d09a093"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.589 DEBUG (SyncWorker_12) [caldav] response status: 0
2024-09-11 21:00:20.590 DEBUG (SyncWorker_12) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[Username]/</href>\n    <propstat>\n      <prop>\n        <C:calendar-home-set>\n          <href>/caldav/caldav.php/[Username]/</href>\n        </C:calendar-home-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.590 DEBUG (SyncWorker_12) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[Username]/</href>\n  <propstat>\n   <prop>\n    <C:calendar-home-set>\n     <href>/caldav/caldav.php/[Username]/</href>\n    </C:calendar-home-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.590 DEBUG (SyncWorker_12) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:displayname/><D:resourcetype/></D:prop></D:propfind>
2024-09-11 21:00:20.611 DEBUG (SyncWorker_37) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.611 DEBUG (SyncWorker_37) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '385', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"dacfb9d374a83f731e25b0b04d09a093"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.611 DEBUG (SyncWorker_37) [caldav] response status: 0
2024-09-11 21:00:20.613 DEBUG (SyncWorker_37) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[Username]/</href>\n    <propstat>\n      <prop>\n        <C:calendar-home-set>\n          <href>/caldav/caldav.php/[Username]/</href>\n        </C:calendar-home-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.613 DEBUG (SyncWorker_37) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[Username]/</href>\n  <propstat>\n   <prop>\n    <C:calendar-home-set>\n     <href>/caldav/caldav.php/[Username]/</href>\n    </C:calendar-home-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.614 DEBUG (SyncWorker_37) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><D:displayname/><D:resourcetype/></D:prop></D:propfind>
2024-09-11 21:00:20.686 DEBUG (SyncWorker_12) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.687 DEBUG (SyncWorker_12) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '1807', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"78d800fbfe30fd2347aa1b8285f4c492"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.687 DEBUG (SyncWorker_12) [caldav] response status: 0
2024-09-11 21:00:20.687 DEBUG (SyncWorker_12) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="urn:ietf:params:xml:ns:carddav" xmlns:C2="http://calendarserver.org/ns/">\n  <response>\n    <href>/caldav/caldav.php/[Username]/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname]</displayname>\n        <resourcetype>\n          <collection/>\n          <principal/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/home/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname] calendar</displayname>\n        <resourcetype>\n          <collection/>\n          <C:calendar/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/addresses/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname] addressbook</displayname>\n        <resourcetype>\n          <collection/>\n          <C1:addressbook/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/calendar-proxy-read/</href>\n    <propstat>\n      <prop>\n        <displayname>/[Username]/calendar-proxy-read/</displayname>\n        <resourcetype>\n          <principal/>\n          <collection/>\n          <C2:calendar-proxy-read/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/calendar-proxy-write/</href>\n    <propstat>\n      <prop>\n        <displayname>/[Username]/calendar-proxy-write/</displayname>\n        <resourcetype>\n          <principal/>\n          <collection/>\n          <C2:calendar-proxy-write/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.687 DEBUG (SyncWorker_12) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="urn:ietf:params:xml:ns:carddav" xmlns:C2="http://calendarserver.org/ns/">\n <response>\n  <href>/caldav/caldav.php/[Username]/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname]</displayname>\n    <resourcetype>\n     <collection/>\n     <principal/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/home/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname] calendar</displayname>\n    <resourcetype>\n     <collection/>\n     <C:calendar/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/addresses/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname] addressbook</displayname>\n    <resourcetype>\n     <collection/>\n     <C1:addressbook/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/calendar-proxy-read/</href>\n  <propstat>\n   <prop>\n    <displayname>/[Username]/calendar-proxy-read/</displayname>\n    <resourcetype>\n     <principal/>\n     <collection/>\n     <C2:calendar-proxy-read/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/calendar-proxy-write/</href>\n  <propstat>\n   <prop>\n    <displayname>/[Username]/calendar-proxy-write/</displayname>\n    <resourcetype>\n     <principal/>\n     <collection/>\n     <C2:calendar-proxy-write/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.688 DEBUG (SyncWorker_12) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/home/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:supported-calendar-component-set/></D:prop></D:propfind>
2024-09-11 21:00:20.715 DEBUG (SyncWorker_37) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.715 DEBUG (SyncWorker_37) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '1807', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"78d800fbfe30fd2347aa1b8285f4c492"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.715 DEBUG (SyncWorker_37) [caldav] response status: 0
2024-09-11 21:00:20.716 DEBUG (SyncWorker_37) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="urn:ietf:params:xml:ns:carddav" xmlns:C2="http://calendarserver.org/ns/">\n  <response>\n    <href>/caldav/caldav.php/[Username]/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname]</displayname>\n        <resourcetype>\n          <collection/>\n          <principal/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/home/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname] calendar</displayname>\n        <resourcetype>\n          <collection/>\n          <C:calendar/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/addresses/</href>\n    <propstat>\n      <prop>\n        <displayname>[Fullname] addressbook</displayname>\n        <resourcetype>\n          <collection/>\n          <C1:addressbook/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/calendar-proxy-read/</href>\n    <propstat>\n      <prop>\n        <displayname>/[Username]/calendar-proxy-read/</displayname>\n        <resourcetype>\n          <principal/>\n          <collection/>\n          <C2:calendar-proxy-read/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n  <response>\n    <href>/caldav/caldav.php/[Username]/calendar-proxy-write/</href>\n    <propstat>\n      <prop>\n        <displayname>/[Username]/calendar-proxy-write/</displayname>\n        <resourcetype>\n          <principal/>\n          <collection/>\n          <C2:calendar-proxy-write/>\n        </resourcetype>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.716 DEBUG (SyncWorker_37) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="urn:ietf:params:xml:ns:carddav" xmlns:C2="http://calendarserver.org/ns/">\n <response>\n  <href>/caldav/caldav.php/[Username]/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname]</displayname>\n    <resourcetype>\n     <collection/>\n     <principal/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/home/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname] calendar</displayname>\n    <resourcetype>\n     <collection/>\n     <C:calendar/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/addresses/</href>\n  <propstat>\n   <prop>\n    <displayname>[Fullname] addressbook</displayname>\n    <resourcetype>\n     <collection/>\n     <C1:addressbook/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/calendar-proxy-read/</href>\n  <propstat>\n   <prop>\n    <displayname>/[Username]/calendar-proxy-read/</displayname>\n    <resourcetype>\n     <principal/>\n     <collection/>\n     <C2:calendar-proxy-read/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n <response>\n  <href>/caldav/caldav.php/[Username]/calendar-proxy-write/</href>\n  <propstat>\n   <prop>\n    <displayname>/[Username]/calendar-proxy-write/</displayname>\n    <resourcetype>\n     <principal/>\n     <collection/>\n     <C2:calendar-proxy-write/>\n    </resourcetype>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.718 DEBUG (SyncWorker_37) [caldav] sending request - method=PROPFIND, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/home/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'text/xml', 'Accept': 'text/xml, text/calendar', 'Depth': '0'}
body:
<?xml version='1.0' encoding='utf-8'?>
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:supported-calendar-component-set/></D:prop></D:propfind>
2024-09-11 21:00:20.775 DEBUG (SyncWorker_12) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.775 DEBUG (SyncWorker_12) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '456', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"1cf95e8c7919db89a096f57f4641c27b"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.775 DEBUG (SyncWorker_12) [caldav] response status: 0
2024-09-11 21:00:20.776 DEBUG (SyncWorker_12) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[Username]/home/</href>\n    <propstat>\n      <prop>\n        <C:supported-calendar-component-set>\n          <C:comp name="VEVENT"/>\n          <C:comp name="VTODO"/>\n          <C:comp name="VJOURNAL"/>\n        </C:supported-calendar-component-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.776 DEBUG (SyncWorker_12) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[Username]/home/</href>\n  <propstat>\n   <prop>\n    <C:supported-calendar-component-set>\n     <C:comp name="VEVENT"/>\n     <C:comp name="VTODO"/>\n     <C:comp name="VJOURNAL"/>\n    </C:supported-calendar-component-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.778 DEBUG (SyncWorker_10) [caldav] sending request - method=REPORT, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/home/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/xml; charset="utf-8"', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
<?xml version='1.0' encoding='utf-8'?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-data><C:expand start="20240910T220000Z" end="20240917T220000Z"/></C:calendar-data></D:prop><C:filter><C:comp-filter name="VCALENDAR"><C:comp-filter name="VEVENT"><C:time-range start="20240910T220000Z" end="20240917T220000Z"/></C:comp-filter></C:comp-filter></C:filter></C:calendar-query>
2024-09-11 21:00:20.801 DEBUG (SyncWorker_37) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.801 DEBUG (SyncWorker_37) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '456', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"1cf95e8c7919db89a096f57f4641c27b"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.801 DEBUG (SyncWorker_37) [caldav] response status: 0
2024-09-11 21:00:20.802 DEBUG (SyncWorker_37) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n  <response>\n    <href>/caldav/caldav.php/[Username]/home/</href>\n    <propstat>\n      <prop>\n        <C:supported-calendar-component-set>\n          <C:comp name="VEVENT"/>\n          <C:comp name="VTODO"/>\n          <C:comp name="VJOURNAL"/>\n        </C:supported-calendar-component-set>\n      </prop>\n      <status>HTTP/1.1 200 OK</status>\n    </propstat>\n  </response>\n</multistatus>\n'
2024-09-11 21:00:20.802 DEBUG (SyncWorker_37) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">\n <response>\n  <href>/caldav/caldav.php/[Username]/home/</href>\n  <propstat>\n   <prop>\n    <C:supported-calendar-component-set>\n     <C:comp name="VEVENT"/>\n     <C:comp name="VTODO"/>\n     <C:comp name="VJOURNAL"/>\n    </C:supported-calendar-component-set>\n   </prop>\n   <status>HTTP/1.1 200 OK</status>\n  </propstat>\n </response>\n</multistatus>\n'
2024-09-11 21:00:20.804 DEBUG (SyncWorker_41) [caldav] sending request - method=REPORT, url=https://[IServ-Server.de]/caldav/caldav.php/[Username]/home/, headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/xml; charset="utf-8"', 'Accept': 'text/xml, text/calendar', 'Depth': '1'}
body:
<?xml version='1.0' encoding='utf-8'?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"><D:prop><C:calendar-data/></D:prop><C:filter><C:comp-filter name="VCALENDAR"><C:comp-filter name="VTODO"/></C:comp-filter></C:filter></C:calendar-query>
2024-09-11 21:00:20.865 DEBUG (SyncWorker_10) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.865 DEBUG (SyncWorker_10) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '68', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"07474790757c5e1b526ce4901889d6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.865 DEBUG (SyncWorker_10) [caldav] response status: 0
2024-09-11 21:00:20.867 DEBUG (SyncWorker_10) [caldav] b'<multistatus xmlns="DAV:"/>\n'
2024-09-11 21:00:20.868 DEBUG (SyncWorker_10) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:"/>\n'
2024-09-11 21:00:20.868 DEBUG (MainThread) [homeassistant.components.caldav.coordinator] No matching event found in the 0 results for [Fullname] calendar
2024-09-11 21:00:20.868 DEBUG (MainThread) [homeassistant.components.caldav.coordinator] Finished fetching CalDAV [Fullname] calendar data in 0.091 seconds (success: True)
2024-09-11 21:00:20.889 DEBUG (SyncWorker_41) [caldav] server responded with 207 Multi-Status
2024-09-11 21:00:20.889 DEBUG (SyncWorker_41) [caldav] response headers: {'Date': 'Wed, 11 Sep 2024 19:00:24 GMT', 'Content-Type': 'text/xml; charset="utf-8"', 'Content-Length': '68', 'Connection': 'keep-alive', 'Server': 'IServ', 'DAV': '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, bind, addressbook, calendar-proxy', 'ETag': '"07474790757c5e1b526ce4901889d6d3"', 'X-DAViCal-Version': 'DAViCal/1.1.10; DB/1.3.3', 'Strict-Transport-Security': 'max-age=63072000;'}
2024-09-11 21:00:20.889 DEBUG (SyncWorker_41) [caldav] response status: 0
2024-09-11 21:00:20.890 DEBUG (SyncWorker_41) [caldav] b'<multistatus xmlns="DAV:"/>\n'
2024-09-11 21:00:20.890 DEBUG (SyncWorker_41) [caldav] b'<?xml version="1.0" encoding="utf-8" ?>\n<multistatus xmlns="DAV:"/>\n'`

I downloaded the ics file: and shortend it ot list the first event with header and footer information

BEGIN:VCALENDAR
PRODID:-//davical.org//NONSGML AWL Calendar//EN
VERSION:2.0
CALSCALE:GREGORIAN
X-WR-CALNAME:Public
BEGIN:VEVENT
CREATED:20201009T082216Z
UID:20201009-082216-e7bf06c14dfebf3ceb353275724f3572@iserv.[DOMAIN]
 de
DTSTART;VALUE=DATE:20201106
DTEND;VALUE=DATE:20201107
SUMMARY:Päd. Tag: BAD (kein Unterricht - OGS geöffnet)
CLASS:PUBLIC
TRANSP:OPAQUE
LAST-MODIFIED:20201009T082216Z
DTSTAMP:20201009T082216Z
END:VEVENT
[...]
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
Marco4223 commented 1 month ago

Looks like the authentication ic not campatible with CalDav: [caldav] server responded with 401 Unauthorized Same on my side. Maybe this can be implemented?

FitziCJ commented 1 month ago

In my log i see that the login is successful, as later the full name is seen. I replaced the first name, middle name and family name with [Fullname]. The information about the second name could not parsed by the login name and could only be seen after a successful login:

2024-09-11 21:00:20.687 DEBUG (SyncWorker_12) [caldav] b'<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="urn:ietf:params:xml:ns:carddav" xmlns:C2="http://calendarserver.org/ns/">\n  <response>\n    
<href>/caldav/caldav.php/[Username]/</href>\n    <propstat>\n      <prop>\n        
<displayname>[Fullname]</displayname>
Marco4223 commented 1 month ago

@FitziCJ Vergiss CalDAV für iServ. Das bringt nix. Ich verwende jetzt den hier für iServ Kalender und es klappt auf anhieb: https://github.com/franc6/ics_calendar