Project

General

Profile

Actions

Bug #24821

closed

rgw doesnt support delimiter longer then one symbol

Added by ryci us almost 6 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
nautilus,mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

If i list bucket with delimiter containing only one symbol everything is ok:

> GET /50ff0d1e-1e53-4b48-a79e-4682a1be5da4?delimiter=a&prefix=hh HTTP/1.1
> Host: 127.0.0.1:7480
> User-Agent: curl/7.47.0
> Accept: */*
> Date: Sun, 08 Jul 2018 08:56:22 +0000
> Authorization: AWS 3624AHCIMD70GX8WAFXM:M9itfrTqLcvIjVEWga+WaGdDz6o=
> 
< HTTP/1.1 200 OK
< x-amz-request-id: tx000000000000000019553-005b41d1b6-dfaed0-default
< Content-Type: application/xml
< Content-Length: 287
< Date: Sun, 08 Jul 2018 08:56:22 GMT
< 
* Connection #0 to host 127.0.0.1 left intact
<?xml version="1.0" encoding="UTF-8"?><ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>50ff0d1e-1e53-4b48-a79e-4682a1be5da4</Name><Prefix>hh</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><Delimiter>a</Delimiter><IsTruncated>false</IsTruncated></ListBucketResult># 

If i list bucket with delimiter containing more then one symbol i get 400 Bad request:

> GET /50ff0d1e-1e53-4b48-a79e-4682a1be5da4?delimiter=aa&prefix=hh HTTP/1.1
> Host: 127.0.0.1:7480
> User-Agent: curl/7.47.0
> Accept: */*
> Date: Sun, 08 Jul 2018 08:56:30 +0000
> Authorization: AWS 3624AHCIMD70GX8WAFXM:U8dxsH6mgKOp1U5lpMjuSnWJ0d8=
> 
< HTTP/1.1 400 Bad Request
< Content-Length: 253
< x-amz-request-id: tx000000000000000001d58-005b41d1be-dfd6b8-default
< Accept-Ranges: bytes
< Content-Type: application/xml
< Date: Sun, 08 Jul 2018 08:56:30 GMT
< 
* Connection #0 to host 127.0.0.1 left intact
<?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><BucketName>50ff0d1e-1e53-4b48-a79e-4682a1be5da4</BucketName><RequestId>tx000000000000000001d58-005b41d1be-dfd6b8-default</RequestId><HostId>dfd6b8-default-default</HostId></Error>


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #38775: luminous: rgw doesnt support delimiter longer then one symbolRejectedActions
Copied to rgw - Backport #38776: mimic: rgw doesnt support delimiter longer then one symbolResolvedNathan CutlerActions
Copied to rgw - Backport #38777: nautilus: rgw doesnt support delimiter longer then one symbolResolvedNathan CutlerActions
Actions

Also available in: Atom PDF