Support multi-character delimiters
Bug #1797305 reported by
Tim Burke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Apparently this is something AWS supports, and it should be doable for us to do it, too.
Currently, an S3 client including a multi-char delimiter causes the container server to respond 412, which s3api completely chokes on, logs a traceback, and returns 500.
Note that this has some nice knock-on benefits for general Unicode support: since we previously required that delimiters be both a single-byte and valid UTF-8, we limited delimiters to just ASCII. With multi-character delimiters, we could allow any UTF-8 string.
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/609843 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=1ded0d6c879 3ca3eca573c098c ef78b5ae41f080
Committed: https:/
Submitter: Zuul
Branch: master
commit 1ded0d6c8793ca3 eca573c098cef78 b5ae41f080
Author: Tim Burke <email address hidden>
Date: Thu Oct 11 15:23:39 2018 -0700
Allow arbitrary UTF-8 strings as delimiters in listings
AWS seems to support this, so let's allow s3api to do it, too.
Previously, S3 clients trying to use multi-character delimiters would
get 500s back, because s3api didn't know how to handle the 412s that the
container server would send.
As long as we're adding support for container listings, may as well do
it for accounts, too.
Change-Id: I62032ddd50a349 3b8b99a40fb48d8 40ac763d0e7
Co-Authored-By: Thiago da Silva <email address hidden>
Closes-Bug: #1797305