RequestEtagJob: Consistently parse etags #7271
authorChristian Kamm <mail@ckamm.de>
Fri, 21 Jun 2019 13:29:42 +0000 (15:29 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:52 +0000 (10:58 +0100)
commit0e9f030b0f9fe4f8c82595e7dd3a0fbb7742ad42
tree2f5b9450ff91345ffb58ee42251836decc5fa4f4
parent69fa1e4775bc3893f73e5193dcbdb7851e3d40f4
RequestEtagJob: Consistently parse etags #7271

Previously RequestEtagJob did return the etag verbatim (including extra
quotes) while the db had the parsed form. That caused the etag
comparison during discovery move detection to always fail. The test
didn't catch it because the etags there didn't have quotes.

Now:
- RequestEtagJob will parse the etag, leading to a consistent format
- Tests have etags with quotes, detecting the problem
src/libsync/networkjobs.cpp
src/libsync/networkjobs.h
src/libsync/owncloudpropagator_p.h
test/syncenginetestutils.h