radosgw: S3 ListBucket issue

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

 



Hi,

Reecently I've found that radosgw S3 ListBucket doesn't set
EncodingType field in ListBucketResult. That makes boto3 (python s3
library) return urlencoded keys instead of unicode keys:

def test_list_bucket(bucket):
    bucket.put_object(Key='foo/bar', Body='')
    for obj in bucket.objects.filter(Prefix='foo'):
        print repr(obj.key)

Prints 'foo%2Fbar' instead of u'foo/bar'. I it fixed here

https://github.com/vitek/ceph/commit/8052362a629fdf2ba7d9bef57fe09086446c3be1

if my commit looks ok I would open pull request.

Another issue is that AWS's S3 urlencodes only ascii characters in
range '\x00' ... '\x0a', while radosgw does full urlencode. I'm not
sure is that a bug or not. But anyway having EncodingType set in
result this wouldn't be an issue for me at least.


Thanks!

-- 
Victor Makarov.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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