Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3275470
D4075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Referenced Files
None
Subscribers
None
D4075.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4075: [services] Backup - prevent sending logs for non-existing backups
Attached
Detach File
Event Timeline
Log In to Comment