RGW: range copy failed with tenant enable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, everyone:

I'm using the range copy function in rgw of Luminous. I create a user
account  which is under a named tenant. When I'm trying to start a
range copy within its bucket, rgw complaints with 404. The log shows
that rgw failed to find the bucket under the empty tenant.
What's more, when I create the same name bucket using another user
account which is under an empty tenant, range copy will succeed, and
the tenanted user finally reads the content of the empty-tenant user
without any permission check fail. This problem also exists in master
branch.

The permission check in verify_permission() seems not to work for
range copy, because of the variable used in the if sentence has never
been initialized. I have tried to fix it by moving the copy-source
logic in get_params() to rgw_op::init_processing(), and it seems to
work. But I'm not sure if this is the right way.

The issue tracker is https://tracker.ceph.com/issues/42825. Any
suggestion is appreciated, thanks!



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux