python-caldav / caldav

Apache License 2.0
313 stars 91 forks source link

Warning `server path handling problem` using Nextcloud #330

Open fluxxcode opened 11 months ago

fluxxcode commented 11 months ago

Calling client.principal().calendars() using Nextcloud as the caldav server results in the following warning:

Possibly the server has a path handling problem, possibly the URL configured is wrong.
Path expected: //remote.php/dav, path found: ['/remote.php/dav/'] Please raise an issue at https://github.com/python-caldav/caldav/issues or reach out to t-caldav@tobixen.no, include this error and the traceback and tell what server you are using.
Continuing, probably everything will be fine

However, a correct list of the user's calendars is still returned. \ So far I have only noticed this with client.principal().calendars(). When deleting or creating events, via client.calendar(...).add_event(...), this warning does not appear.

I am currently using the latest Nextcloud Docker image (Nextcloud Hub 5 (27.0.2)) with a SQLite database.

tobixen commented 11 months ago

It seems harmless, but I ought to look into it at some point.