Merge "when fetching object store properties use lower()"
This commit is contained in:
commit
5ce02deac4
@ -570,6 +570,6 @@ class APIv1(api.BaseAPI):
|
|||||||
# OSC commands
|
# OSC commands
|
||||||
properties = {}
|
properties = {}
|
||||||
for k, v in six.iteritems(headers):
|
for k, v in six.iteritems(headers):
|
||||||
if k.startswith(header_tag):
|
if k.lower().startswith(header_tag):
|
||||||
properties[k[len(header_tag):]] = v
|
properties[k[len(header_tag):]] = v
|
||||||
return properties
|
return properties
|
||||||
|
@ -157,6 +157,7 @@ class TestContainer(TestObjectAPIv1):
|
|||||||
'container': 'qaz',
|
'container': 'qaz',
|
||||||
'object_count': '1',
|
'object_count': '1',
|
||||||
'bytes_used': '577',
|
'bytes_used': '577',
|
||||||
|
'properties': {'Owner': FAKE_ACCOUNT},
|
||||||
}
|
}
|
||||||
self.requests_mock.register_uri(
|
self.requests_mock.register_uri(
|
||||||
'HEAD',
|
'HEAD',
|
||||||
@ -309,6 +310,7 @@ class TestObject(TestObjectAPIv1):
|
|||||||
'etag': 'qaz',
|
'etag': 'qaz',
|
||||||
'x-container-meta-owner': FAKE_ACCOUNT,
|
'x-container-meta-owner': FAKE_ACCOUNT,
|
||||||
'x-object-meta-wife': 'Wilma',
|
'x-object-meta-wife': 'Wilma',
|
||||||
|
'x-object-meta-Husband': 'fred',
|
||||||
'x-tra-header': 'yabba-dabba-do',
|
'x-tra-header': 'yabba-dabba-do',
|
||||||
}
|
}
|
||||||
resp = {
|
resp = {
|
||||||
@ -319,7 +321,8 @@ class TestObject(TestObjectAPIv1):
|
|||||||
'content-length': '577',
|
'content-length': '577',
|
||||||
'last-modified': '20130101',
|
'last-modified': '20130101',
|
||||||
'etag': 'qaz',
|
'etag': 'qaz',
|
||||||
'properties': {'wife': 'Wilma'},
|
'properties': {'wife': 'Wilma',
|
||||||
|
'Husband': 'fred'},
|
||||||
}
|
}
|
||||||
self.requests_mock.register_uri(
|
self.requests_mock.register_uri(
|
||||||
'HEAD',
|
'HEAD',
|
||||||
|
5
releasenotes/notes/bug_1525805-122e6ce0c3cd4945.yaml
Normal file
5
releasenotes/notes/bug_1525805-122e6ce0c3cd4945.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fix case sensitivity when showing object-store properties.
|
||||||
|
[Bug `1525805 <https://bugs.launchpad.net/bugs/1525805>`_]
|
Loading…
Reference in New Issue
Block a user