From 2e83354c064cf68a74e41a8cb5c7181982d07b97 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 5 Aug 2015 20:55:38 +0200 Subject: [PATCH] DAV: Remove check when fetching etags after PUT Servers may automatically modify the item in unforeseeable ways. Fix #251 --- vdirsyncer/storage/dav.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index 0c5414b..2aa4331 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -476,16 +476,6 @@ class DavStorage(Storage): dav_logger.debug('Server did not send etag, fetching {!r}' .format(href)) item2, etag = self.get(href) - - # We don't have the old etag, but we can sloppily compare item - # contents to see if the values changed. - if item2.hash != item.hash: - dav_logger.debug('Old content: {!r}'.format(item.raw)) - dav_logger.debug('New content: {!r}'.format(item2.raw)) - raise exceptions.WrongEtagError( - 'While requesting the etag for {!r}, ' - 'the item content changed.'.format(href) - ) return href, etag def update(self, href, item, etag):