Etag in HEAD or GET of a segmented file (manifest) does not work as documented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
John Dickinson |
Bug Description
The documentation says:
The response’s ETag for a GET or HEAD on the manifest file will be the MD5 sum of the concatenated string of ETags for each of the segments in the <container>
However, that has not been the case in my tests. I found that quotes were being inserted between the etag strings before concatenating. The following patch should fix this.
=== modified file 'swift/
--- swift/proxy/
+++ swift/proxy/
@@ -854,7 +854,7 @@
- '"'.join(o['hash'] for o in listing)
+ ''.join(o['hash'] for o in listing)
Changed in swift: | |
status: | New → Confirmed |
Changed in swift: | |
importance: | Undecided → Low |
milestone: | none → 1.4.4 |
assignee: | nobody → John Dickinson (notmyname) |
Changed in swift: | |
status: | Fix Committed → Fix Released |
Any plans to ship this patch in 1.4.4?
It doesn't look to me like a low priority bug that the actual etag returned by the manifest is wrong ;)