[bug] S3 provider should limit max key size to 1024 #31

This commit is contained in:
Scott E. Graves 2024-12-31 10:14:13 -06:00
parent 84e89d3b83
commit ed4a4f0742

View File

@ -44,7 +44,7 @@ namespace {
const std::string &object_name) const std::string &object_name)
-> repertory::api_error { -> repertory::api_error {
request.path = object_name; request.path = object_name;
if ((cfg.bucket + request.path).subst(0U).size() > 1024U) { if ((cfg.bucket + request.path).substr(0U).size() > 1024U) {
return repertory::api_error::name_too_long; return repertory::api_error::name_too_long;
} }