Page MenuHomePhabricator

D3460.diff
No OneTemporary

D3460.diff

diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
--- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
+++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
@@ -23,32 +23,10 @@
class CreateNewBackupReactor : public BidiReactorBase<
backup::CreateNewBackupRequest,
backup::CreateNewBackupResponse> {
- auth::AuthenticationManager authenticationManager;
-
public:
std::unique_ptr<grpc::Status> handleRequest(
backup::CreateNewBackupRequest request,
backup::CreateNewBackupResponse *response) override {
- if (this->authenticationManager.getState() !=
- auth::AuthenticationState::SUCCESS &&
- !request.has_authenticationrequestdata()) {
- return std::make_unique<grpc::Status>(
- grpc::StatusCode::INTERNAL,
- "authentication has not been finished properly");
- }
- if (this->authenticationManager.getState() ==
- auth::AuthenticationState::FAIL) {
- return std::make_unique<grpc::Status>(
- grpc::StatusCode::INTERNAL, "authentication failure");
- }
- if (this->authenticationManager.getState() !=
- auth::AuthenticationState::SUCCESS) {
- backup::FullAuthenticationResponseData *authResponse =
- this->authenticationManager.processRequest(
- request.authenticationrequestdata());
- response->set_allocated_authenticationresponsedata(authResponse);
- return nullptr;
- }
// TODO handle request
return std::make_unique<grpc::Status>(
grpc::StatusCode::UNIMPLEMENTED, "unimplemented");

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 4:27 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594417
Default Alt Text
D3460.diff (1 KB)

Event Timeline