We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51140d6 commit 07afdc1Copy full SHA for 07afdc1
src/rgw/rgw_cksum_pipe.cc
@@ -43,9 +43,14 @@ namespace rgw::putobj {
43
if (algo_header.first) {
44
if (algo_header.second) {
45
auto cksum_type = cksum::parse_cksum_type(algo_header.second);
46
- return
47
- std::make_unique<RGWPutObj_Cksum>(
48
- next, cksum_type, std::move(algo_header));
+ /* unknown checksum type in header */
+ if (cksum_type != rgw::cksum::Type::none) {
+ return
49
+ std::make_unique<RGWPutObj_Cksum>(
50
+ next, cksum_type, std::move(algo_header));
51
+ } else {
52
+ return std::unique_ptr<RGWPutObj_Cksum>();
53
+ }
54
}
55
/* malformed checksum algorithm header(s) */
56
throw rgw::io::Exception(EINVAL, std::system_category());
0 commit comments