diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-06-03 19:27:12 +0400 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-06-03 19:27:12 +0400 |
commit | 582a8fe7fd651ed980627336c2cac5dcd02497ac (patch) | |
tree | 1a99e783e7bca7b2fea543e109f30e294a24aa38 /src/mirall/propagator_qnam.cpp | |
parent | 08ca8b54b154511de090fded892bb89cf525633f (diff) | |
parent | 6e10b8c5c46cd2e2a734d1c2e123b535bc09a54e (diff) |
Merge branch '1.6'
Diffstat (limited to 'src/mirall/propagator_qnam.cpp')
-rw-r--r-- | src/mirall/propagator_qnam.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mirall/propagator_qnam.cpp b/src/mirall/propagator_qnam.cpp index e8e496ed1..177c36e9c 100644 --- a/src/mirall/propagator_qnam.cpp +++ b/src/mirall/propagator_qnam.cpp @@ -257,6 +257,12 @@ void PropagateUploadFileQNAM::slotPutFinished() errorString += QLatin1String(" (") + rx.cap(1) + QLatin1Char(')'); } + if (_item._httpErrorCode == 412) { + // Precondition Failed: Maybe the bad etag is in the database, we need to clear the + // parent folder etag so we won't read from DB next sync. + _propagator->_journal->avoidReadFromDbOnNextSync(_item._file); + } + done(classifyError(err, _item._httpErrorCode), errorString); return; } |