Project

General

Profile

Bug #47418

Ceph changes user metadata with `_` to `-`

Added by Yatharth Sharma 7 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
aws s3, metadata
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Hi,

I am getting the following problem while saving custom metadata using s3 radosgw in putObject

The key cotaining `_` changes to `-`
for example if the key is `Test_abc-def_a` in putObject request. The headObject returns `test-abc-def-a`

Here is the tcp dump of the request

put request (see x-amz-meta-)

```
PUT /objectstoragetests-20200911t190904-yathshar-p21vnqci/Objects-8%27%3AoxbxV%25A0%5Bx/%E2%82%ACG HTTP/1.1
Host: localhost:7480
x-amz-content-sha256: bed3382f3c0564ed42e7dc1463e7efa3fcd53d399c5abecfa81e0f784ac3bbef
X-Amz-Date: 20200911T190911Z
x-amz-meta-date: 2020-09-11T19:09:11.829Z
User-Agent: aws-sdk-java/1.11.372 Mac_OS_X/10.13.6 Java_HotSpot(TM)_64-Bit_Server_VM/25.211-b12 java/1.8.0_211
x-amz-meta-build: LOCAL
amz-sdk-retry: 0/0/500
Authorization: AWS4-HMAC-SHA256 Credential=VJTT91FWK66N2FCK94K0/20200911/us-east-2/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-meta-build;x-amz-meta-commit;x-amz-meta-date;x-amz-meta-test;x-amz-meta-test_abc-def_a;x-amz-meta-thread;x-amz-meta-user, Signature=2220380bb457490ad12fa3bb98d1f0d2758908d665970e3e42144998e32d0c32
x-amz-meta-Test_abc-def_a: JqmnE
amz-sdk-invocation-id: d130fe14-bf21-2638-ad45-a2b9528c0e52
Content-Type: application/octet-stream
Content-Length: 99
Connection: Keep-Alive
```

Head response for the same thing

```
Y..,.<*HTTP/1.1 200 OK
Content-Length: 99
Accept-Ranges: bytes
Last-Modified: Fri, 11 Sep 2020 19:09:11 GMT
x-rgw-object-type: Normal
ETag: "864bc0f654aff74367e85bbb9c0403d9"
x-amz-meta-build: LOCAL
x-amz-meta-date: 2020-09-11T19:09:11.829Z
x-amz-meta-test-abc-def-a: JqmnE
x-amz-request-id: tx000000000000000002d5b-005f5bcb57-1379-default
Content-Type: application/octet-stream
Date: Fri, 11 Sep 2020 19:09:11 GMT
Connection: Keep-Alive
```

Let me know if you need any other information

Thanks,
Yatharth sharma

Also available in: Atom PDF