Secure file reuploading hotfix

GitOrigin-RevId: 8d64534b3afafeae35ff40531aaf1ba3b4d8a398
This commit is contained in:
Arseny Smirnov 2018-05-11 22:13:18 +03:00
parent e8494ea376
commit 4a2b256ecd

View File

@ -36,6 +36,9 @@ FileUploader::FileUploader(const LocalFileLocation &local, const RemoteFileLocat
iv_ = encryption_key_.mutable_iv();
generate_iv_ = encryption_key_.iv_slice().str();
}
if (remote_.type() == RemoteFileLocation::Type::Partial && encryption_key_.is_secure()) {
remote_ = RemoteFileLocation{};
}
}
Result<FileLoader::FileInfo> FileUploader::init() {