pimutils / vdirsyncer

📇 Synchronize calendars and contacts.
https://vdirsyncer.pimutils.org/
Other
1.53k stars 160 forks source link

memotoo server returned something vdirsyncer does not understand #775

Open Konfekt opened 5 years ago

Konfekt commented 5 years ago

Before you submit bug reports: https://vdirsyncer.pimutils.org/en/stable/contributing.html

Things to include in your bugreport:

[pair contacts] a = "contactsLocal" b = "contactsRemote"

collections = ["private", "work"]

collections = ["from b"]

Calendars also have a color property

metadata = ["rest", "blue"]

To resolve a conflict the following values are possible:

null - abort when collisions occur (default)

"a wins" - assume a's items to be more up-to-date

"b wins" - assume b's items to be more up-to-date

conflict_resolution = "a wins"

[storage contactsLocal] type = "filesystem" path = "~/.local/share/vdirsyncer/calendars/user/" fileext = ".ics"

[storage contactsRemote] type = "caldav" url = "https://webdav.memotoo.com:443/cardDAV/" username = "user" password.fetch = ["command", "pass", "memotoo"]

* Use `vdirsyncer -vdebug` for debug output. The output is sensitive, but
  please attach at least the last few lines before the error (if applicable),
  censored as necessary. This is almost always the most useful information.

The command `vdirsyncer -v DEBUG  discover contacts` yields the output

debug: Given URL is not a homeset URL debug: PROPFIND https://webdav.memotoo.com:443/cardDAV/ debug: {'User-Agent': 'vdirsyncer/0.16.6', 'Content-Type': 'application/xml; charset=UTF-8', 'Depth': '0'} debug: b'\n \n \n \n </d:prop>\n </d:propfind>\n ' debug: Sending request... debug: 207 debug: {'Date': 'Mon, 19 Nov 2018 16:54:59 GMT', 'Server': 'Apache', 'Set-Cookie': 'PHPSESSID=hqap7kab4g8dg2ilnfnjf9qes1; path=/; HttpOnly', 'X-Robots-Tag': 'noindex, nofollow', 'X-Dav-Powered-By': 'Memotoo DAV server', 'Last-modified': 'Mon, 19 Nov 2018 16:38:40 GMT', 'X-WebDAV-Status': '207 Multi-Status', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Content-Length': '225', 'Keep-Alive': 'timeout=5, max=19', 'Connection': 'Keep-Alive', 'Content-Type': 'text/xml; charset=UTF-8'} debug: b'<?xml version="1.0" encoding="utf-8"?>\r\n\r\n\r\nhttps://webdav.memotoo.com/cardDAV/</d:href>\r\n\r\n\r\n</d:prop>\r\nHTTP/1.1 200 OK</d:status>\r\n</d:propstat>\r\n\r\n\r\n\r\n</d:prop>\r\nHTTP/1.1 404 Not Found</d:status>\r\n</d:propstat>\r\n</d:response>\r\n</d:multistatus>\r\n' debug: No current-user-principal returned, re-using URL https://webdav.memotoo.com:443/cardDAV/ debug: PROPFIND https://webdav.memotoo.com:443/cardDAV/ debug: {'User-Agent': 'vdirsyncer/0.16.6', 'Content-Type': 'application/xml; charset=UTF-8', 'Depth': '0'} debug: b'\n \n \n \n </d:prop>\n </d:propfind>\n ' debug: Sending request... debug: 207 debug: {'Date': 'Mon, 19 Nov 2018 16:54:59 GMT', 'Server': 'Apache', 'Set-Cookie': 'PHPSESSID=hqap7kab4g8dg2ilnfnjf9qes1; path=/; HttpOnly', 'X-Robots-Tag': 'noindex, nofollow', 'X-Dav-Powered-By': 'Memotoo DAV server', 'Last-modified': 'Mon, 19 Nov 2018 16:38:40 GMT', 'X-WebDAV-Status': '207 Multi-Status', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Content-Length': '246', 'Keep-Alive': 'timeout=5, max=18', 'Connection': 'Keep-Alive', 'Content-Type': 'text/xml; charset=UTF-8'} debug: b'<?xml version="1.0" encoding="utf-8"?>\r\n\r\n\r\nhttps://webdav.memotoo.com/cardDAV/</d:href>\r\n\r\n\r\n</d:prop>\r\nHTTP/1.1 200 OK</d:status>\r\n</d:propstat>\r\n\r\n\r\n\r\n</d:prop>\r\nHTTP/1.1 404 Not Found</d:status>\r\n</d:propstat>\r\n</d:response>\r\n</d:multistatus>\r\n' error: The server returned something vdirsyncer doesn't understand. Error message: InvalidXMLResponse("Couldn't find home-set.",) error: While this is most likely a serverside problem, the vdirsyncer devs are generally interested in such bugs. Please report it in the issue tracker at https://github.com/pimutils/vdirsyncer/issues error: 1 out of 1 tasks failed.

Konfekt commented 5 years ago

Note that accessing https://webdav.memotoo.com/cardDAV/ by Firefox 60 works flawlessy.