Merge pull request #55565 from BBoozmen/oozmen_avoid_path_normalization

rgw/http/client-side: disable curl path normalization

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2024-02-23 16:01:24 +00:00 committed by GitHub
commit e754a39838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -591,6 +591,8 @@ int RGWHTTPClient::init_request(rgw_http_req_data *_req_data)
curl_easy_setopt(easy_handle, CURLOPT_READFUNCTION, send_http_data);
curl_easy_setopt(easy_handle, CURLOPT_READDATA, (void *)req_data);
curl_easy_setopt(easy_handle, CURLOPT_BUFFERSIZE, cct->_conf->rgw_curl_buffersize);
curl_easy_setopt(easy_handle, CURLOPT_PATH_AS_IS, 1L);
if (send_data_hint || is_upload_request(method)) {
curl_easy_setopt(easy_handle, CURLOPT_UPLOAD, 1L);
}

View File

@ -612,7 +612,8 @@ def test_object_sync():
zonegroup_conns = ZonegroupConns(zonegroup)
buckets, zone_bucket = create_bucket_per_zone(zonegroup_conns)
objnames = [ 'myobj', '_myobj', ':', '&' ]
objnames = [ 'myobj', '_myobj', ':', '&', '.', '..', '...', '.o', '.o.']
content = 'asdasd'
# don't wait for meta sync just yet