Comment 11 for bug 1558193

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (stable/liberty)

Reviewed: https://review.openstack.org/324392
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=92abacfc5c93df8d08ba83c9ed4641945b32d008
Submitter: Jenkins
Branch: stable/liberty

commit 92abacfc5c93df8d08ba83c9ed4641945b32d008
Author: Alistair Coles <email address hidden>
Date: Wed Mar 16 17:41:30 2016 +0000

    Put correct Etag and Accept-Ranges in EC 304 and 416 responses

    When using an EC policy, 304 responses to conditional GETs
    are missing the Accept-Ranges header and have the wrong ETag
    value. 412 responses also have the wrong etag.

    416 responses to ranged GETs also have the wrong ETag.

    This patch ensures behaviour with EC policy is consistent
    with replication policy:

      - 304 and 416 responses have correct etag and Accept-Ranges
      - 412 responses have correct Etag but no Accept-Ranges

    Co-Authored-By: Mahati Chamarthy <email address hidden>
    Co-Authored-By: Thiago da Silva <email address hidden>

    Cherry-picked from commit 12dd408823df158359e99fb01716f2059140c5c9

    Closes-Bug: #1496234
    Closes-Bug: #1558197
    Closes-Bug: #1558193
    Change-Id: Ic21317b9e4f632f0751133a3383eb5487379e11f