Page MenuHomePhabricator

D4075.id13112.diff
No OneTemporary

D4075.id13112.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
Thu, Dec 26, 5:31 PM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2707751
Default Alt Text
D4075.id13112.diff (778 B)

Event Timeline