Page MenuHomePhabricator

D4075.diff
No OneTemporary

D4075.diff

diff --git a/services/backup/src/Reactors/server/SendLogReactor.cpp b/services/backup/src/Reactors/server/SendLogReactor.cpp
--- a/services/backup/src/Reactors/server/SendLogReactor.cpp
+++ b/services/backup/src/Reactors/server/SendLogReactor.cpp
@@ -62,6 +62,11 @@
throw std::runtime_error("backup id expected but not received");
}
this->backupID = request.backupid();
+ if (database::DatabaseManager::getInstance().findBackupItem(
+ this->userID, this->backupID) == nullptr) {
+ throw std::runtime_error(
+ "trying to send log for a non-existent backup");
+ }
this->logID = this->generateLogID(this->backupID);
this->response->set_logcheckpoint(this->logID);
this->state = State::LOG_HASH;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 7:06 AM (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2517329
Default Alt Text
D4075.diff (778 B)

Event Timeline