Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ETag of manifest file

I find the following description from http://docs.openstack.org/developer/swift/overview_large_objects.htm “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>/<prefix> listing, dynamically.”

So I upload two segment files and a manifest file, then I want to use the ETag of segment file to calculate the ETag of manifest file. a) segment file1: ETag: c4ca4238a0b923820dcc509a6f75849b b) segment file2: ETag: c81e728d9d4c2f636f067f89cc14862c c) So I think the ETag of manifest file should be 02e26c67c011b6b0914cfd3f5cac506f: #cat manifestETag c4ca4238a0b923820dcc509a6f75849bc81e728d9d4c2f636f067f89cc14862c #md5sum manifestETag 02e26c67c011b6b0914cfd3f5cac506f manifestETag

But in face the ETag of manifest is 302cbafc0dfbc97f30d576a6f394dad3.

So I think the ETag of manifest should be “02e26c67c011b6b0914cfd3f5cac506f”, But in fact it is 302cbafc0dfbc97f30d576a6f394dad3.