swift/test/unit/common/middleware
Samuel Merritt 4f24ef87d6 Make DLO manifest copying work with ?multipart-manifest=get
If a client issues a COPY request for a DLO with the query param
multipart-manifest=get, then the expectation is a new
manifest. However, this wasn't the case; X-Object-Manifest wasn't
being set on the new object, so the result was a normal object with
the same contents as the old manifest (typically 0 bytes).

There was already a mechanism by which middlewares could modify COPY
requests; this commit extends that so they can set headers on the new
object.

Note that this has nothing to do with a "normal" DLO copy, i.e. one
without multipart-manifest=get. That one makes a new object that's the
concatenation of the segments, and it was working just fine.

Change-Id: I1073af9fee6e34ebdfad7b1a89aeb05e4523a151
2014-02-27 22:38:53 -08:00
..
__init__.py Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
helpers.py Ensure swift.source is set for DLO/SLO requests 2014-02-11 10:22:13 -08:00
test_account_quotas.py Handle COPY verb in account quota middleware 2013-10-16 17:41:14 +02:00
test_acl.py Fix invalid account acl generating 500 response. 2014-02-19 18:32:53 +00:00
test_bulk.py Merge "Make POST for bulk delete actually work" 2014-01-12 07:15:11 +00:00
test_cname_lookup.py Allow multiple storage_domain in cname_lookup. 2014-01-26 10:45:19 +00:00
test_container_sync.py New container sync configuration option 2014-01-10 23:48:00 +00:00
test_crossdomain.py Corrected many style violations in the tests. 2013-07-24 10:18:47 -07:00
test_dlo.py Make DLO manifest copying work with ?multipart-manifest=get 2014-02-27 22:38:53 -08:00
test_domain_remap.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_except.py add bare except to catch errors 2013-11-26 14:03:30 -05:00
test_formpost.py form post over XMLHttpRequest (cors) broken 2013-10-28 22:38:53 +00:00
test_gatekeeper.py Generic means for persisting system metadata. 2014-01-06 22:29:37 +00:00
test_healthcheck.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_keystoneauth.py Do not format messages before they are logged 2013-11-21 22:34:36 -05:00
test_list_endpoints.py Use a tempfile.mkdtemp() based temporary directory 2014-01-19 16:29:45 -05:00
test_memcache.py Fix for memcache middleware configuration 2013-11-26 18:03:33 +00:00
test_name_check.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_proxy_logging.py Limit logged headers in proxy_logging middleware 2014-02-10 16:50:18 +00:00
test_quotas.py Handle COPY verb in container quota middleware 2014-02-04 12:30:20 +01:00
test_ratelimit.py Add a way to ratelimit all writes to an account 2014-01-29 14:08:19 -08:00
test_recon.py Remove trailing slash for consistency 2014-01-06 18:12:42 -05:00
test_slo.py Make DLO manifest copying work with ?multipart-manifest=get 2014-02-27 22:38:53 -08:00
test_staticweb.py Improve StaticWeb 404 on web-listings/index 2014-02-18 11:46:31 +00:00
test_tempauth.py Fix invalid account acl generating 500 response. 2014-02-19 18:32:53 +00:00
test_tempurl.py Expose allowed tempurl methods in /info 2013-12-12 16:13:42 -08:00