Project

General

Profile

Bug #16134

s3, multi-tenant, share the link problems

Added by Jiang Yu almost 8 years ago. Updated almost 8 years ago.

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

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

http://%s/%s/user?format=json&uid=yujiang6$yujiang6&display-name=helloworld

When I use the above url users create s3 , Setting object ACL All Users.Visit the following url through the browser.

http://192.168.250.68/yujiang%5C1234/Informal-Discussion-on-Architecture.pdf
<Error>
<Code>InvalidBucketName</Code>
<BucketName>yujiang\1234</BucketName>
<RequestId>tx00000000000000006665b-0057514077-259fd-default</RequestId>
<HostId>259fd-default-default</HostId>
</Error>

http://192.168.250.68/1234/Informal-Discussion-on-Architecture.pdf
<Error>
<Code>NoSuchBucket</Code>
<BucketName>1234</BucketName>
<RequestId>tx00000000000000006665c-00575140c6-259fd-default</RequestId>
<HostId>259fd-default-default</HostId>
</Error>

History

#1 Updated by Jiang Yu almost 8 years ago

root@B-80-11:~# radosgw-admin metadata list bucket
2016-06-06 11:36:36.275634 7f2a65fb0900 0 RGWZoneParams::create(): error creating default zone params: (17) File exists
[
"AAA",
"12334567",
"yujiang6\/new-bucket-9c65e4ce",
"123\/new-bucket-acfc00f6",
"rancher_test",
"new-bucket-3aef102f",
"yujiang",
"yujiang6\/24321",
"store",
"sotre",
"wangchao",
"yujiang6\/1234",
"yujiang6\/new-bucket-14022339",
"yujiang6\/new-bucket-bfc1066d",
"yyyy",
"yujiang6\/new-bucket-0c5bf03d",
"yujiang6\/kkkkkkkkkkkkkkkkk",
"bbb",
"david",
"456\/new-bucket-acfc00f6",
"ddd",
"1234567890",
"yujiang6\/new-bucket-7e318575",
"new-bucket-c44e853e",
"BBB"
]

#2 Updated by Jens Harbott almost 8 years ago

I think the "\/" is json encoding, so the real bucket name would be "yujiang6/1234". Can you retry with http://192.168.250.68/yujiang%2F1234/Informal-Discussion-on-Architecture.pdf ?

#3 Updated by Jiang Yu almost 8 years ago

yes, "yujiang6\/1234" is really bucket name

http://192.168.250.68/yujiang6%2F1234/Informal-Discussion-on-Architecture.pdf

<Error>
<Code>NoSuchKey</Code>
<BucketName>yujiang</BucketName>
<RequestId>tx00000000000000000002a-00575e26bf-29108-default</RequestId>
<HostId>29108-default-default</HostId>
</Error>

#4 Updated by Jiang Yu almost 8 years ago

Jiang Yu wrote:

yes, "yujiang6\/1234" is really bucket name

http://192.168.250.68/yujiang6%2F1234/Informal-Discussion-on-Architecture.pdf

<Error>
<Code>NoSuchBucket</Code>
<BucketName>yujiang6</BucketName>
<RequestId>tx000000000000000000030-00575e2afa-29108-default</RequestId>
<HostId>29108-default-default</HostId>
</Error>

#5 Updated by Jiang Yu almost 8 years ago

Jiang Yu wrote:

Jiang Yu wrote:

yes, "yujiang6\/1234" is really bucket name

http://192.168.250.68/yujiang6%2F1234/Informal-Discussion-on-Architecture.pdf

<Error>
<Code>NoSuchBucket</Code>
<BucketName>yujiang6</BucketName>
<RequestId>tx000000000000000000030-00575e2afa-29108-default</RequestId>
<HostId>29108-default-default</HostId>
</Error>

Can not parsed "/"

#6 Updated by Jiang Yu almost 8 years ago

yujiang%2F1234/Informal-Discussion-on-Architecture.pdf
Here converted to
/yujiang/1234/Informal-Discussion-on-Architecture.pdf

RGWREST::preprocess (s=0x7fcb06ffa2c0, cio=0x7fcb06ffaa00) at rgw/rgw_rest.cc:1701

Here is "/" do Split
RGWRESTMgr::get_resource_mgr (this=0x7fff88a19ca0, s=0x7fcb06ffa2c0, uri="/yujiang/1234/Informal-Discussion-on-Architecture.pdf", out_uri=0x7fcb06ffa2f8) at rgw/rgw_rest.cc:1544

#7 Updated by Jiang Yu almost 8 years ago

Jiang Yu wrote:

yujiang%2F1234/Informal-Discussion-on-Architecture.pdf
Here converted to
/yujiang/1234/Informal-Discussion-on-Architecture.pdf

RGWREST::preprocess (s=0x7fcb06ffa2c0, cio=0x7fcb06ffaa00) at rgw/rgw_rest.cc:1701

Here is "/" do Split
RGWRESTMgr::get_resource_mgr (this=0x7fff88a19ca0, s=0x7fcb06ffa2c0, uri="/yujiang/1234/Informal-Discussion-on-Architecture.pdf", out_uri=0x7fcb06ffa2f8) at rgw/rgw_rest.cc:1544

Do you have the appropriate standard url???

Also available in: Atom PDF