Page MenuHomePhabricator

D4085.diff
No OneTemporary

D4085.diff

diff --git a/services/backup/src/Reactors/server/AddAttachmentReactor.cpp b/services/backup/src/Reactors/server/AddAttachmentReactor.cpp
--- a/services/backup/src/Reactors/server/AddAttachmentReactor.cpp
+++ b/services/backup/src/Reactors/server/AddAttachmentReactor.cpp
@@ -62,6 +62,12 @@
return nullptr;
};
case State::DATA_HASH: {
+ if (!request.has_datahash()) {
+ throw std::runtime_error("data hash expected but not received");
+ }
+ this->hash = request.datahash();
+ this->state = State::DATA_CHUNK;
+ return nullptr;
};
case State::DATA_CHUNK: {
};

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 8:07 PM (7 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2719180
Default Alt Text
D4085.diff (623 B)

Event Timeline