From 48b0d9f3009d2e908027111b6b1b6691f8be4b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadeusz=20=E2=80=9Etadzik=E2=80=9D=20So=C5=9Bnierz?= Date: Fri, 13 Dec 2019 13:31:41 +0100 Subject: [PATCH] Workaround SabreDAV's "funny" behaviour for contact sync --- lib/Net/CardDAVTalk.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Net/CardDAVTalk.pm b/lib/Net/CardDAVTalk.pm index 84e6bd4..213ad70 100644 --- a/lib/Net/CardDAVTalk.pm +++ b/lib/Net/CardDAVTalk.pm @@ -654,6 +654,12 @@ sub SyncContactLinks { # Missing properties return 404 status response, ignore } + elsif ($Status =~ m/ 418 /) { + # Sabredav thinks it's funny to return 418 for missing entries. + # What they mean here is that this contact has since been removed. + # See https://github.com/sabre-io/dav/pull/734 + push @Removed, $href; + } else { warn "ODD STATUS"; push @Errors, "Odd status in propstat response $href: $Status";