]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
PropagateDownload: Throw an error if the file is empty while it should not have been...
authorOlivier Goffart <olivier@woboq.com>
Fri, 29 Apr 2016 06:49:27 +0000 (08:49 +0200)
committerMarkus Goetz <markus@woboq.com>
Fri, 29 Apr 2016 06:49:27 +0000 (08:49 +0200)
commit11b144957b0e502f678e28bcf5feec848a7e1316
treea6afd8382288860d3e58b1f353bd08e26c9cbe4a
parent434d16941b78b32284dbff8655773a12083859db
PropagateDownload: Throw an error if the file is empty while it should not have been (#4753)

If the downloaded file is empty but the PROPFIND previously announced it
should not have been empty, this might mean the file was somehow corrupted
because of a bug on the server and that we should therefore not accept
the file.

Normaly we accept a change between the actual size of the file and what we
got during discovery because the file might have been updated to a new version
inbetween. But after this patch we won't accept the file if it was replaced
by an empty file.

Will help for issue #4583
Also requested by IL for issue 548
src/libsync/propagatedownload.cpp