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 53ef9b1 commit c43ea62Copy full SHA for c43ea62
src/rgw/rgw_op.cc
@@ -4001,6 +4001,12 @@ int RGWPutObj::init_processing(optional_yield y) {
4001
copy_source_object_name =
4002
url_decode(copy_source_object_name.substr(0, pos));
4003
}
4004
+ if (copy_source_object_name.empty()) {
4005
+ //means url_decode returned empty string so the url is formatted badly
4006
+ ret = -EINVAL;
4007
+ ldpp_dout(this, 5) << "x-amz-copy-source bad format" << dendl;
4008
+ return ret;
4009
+ }
4010
pos = copy_source_bucket_name.find(":");
4011
if (pos == std::string::npos) {
4012
// if tenant is not specified in x-amz-copy-source, use tenant of the requester
0 commit comments