Blacklist: ignore problems that don't have HTTP error code and are possibly problem on the local file system

Issue #1985
This commit is contained in:
Olivier Goffart 2014-09-12 14:11:33 +02:00
parent 0edd4d3c02
commit 79052ba7c6

View file

@ -84,13 +84,14 @@ void PropagateItemJob::done(SyncFileItem::Status status, const QString &errorStr
// do not blacklist in case of soft error or fatal error.
break;
case SyncFileItem::NormalError:
if (_item._httpErrorCode == 0 // Do not blacklist local errors. (#1985)
#ifdef OWNCLOUD_5XX_NO_BLACKLIST
if (_item._httpErrorCode / 100 == 5) {
// In this configuration, never blacklist error 5xx
qDebug() << "Do not blacklist error " << _item._httpErrorCode;
|| _item._httpErrorCode / 100 == 5 // In this configuration, never blacklist error 5xx
#endif
) {
qDebug() << "This error is not blacklisted " << _item._httpErrorCode;
break;
}
#endif
_propagator->_journal->updateBlacklistEntry( record );
break;
case SyncFileItem::Success: