Comment 3 for bug 1830881

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

Reviewed: https://review.opendev.org/661930
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=c9e78d15e1e05f23facf7c28758b442bb25bde68
Submitter: Zuul
Branch: master

commit c9e78d15e1e05f23facf7c28758b442bb25bde68
Author: Christian Schwede <email address hidden>
Date: Wed May 29 11:37:54 2019 +0200

    Remove invalid dict entries from hashes.pkl

    If the data in a hashes.pkl is corrupted but still de-serialized without
    errors, it will mess up the replication and gets never fixed. This
    happens for example if one of the keys is a NULL byte.

    This patch checks if the dict keys in hashes.pkl are valid strings and
    invalidates it if not.

    Closes-Bug: 1830881
    Change-Id: I84b062d062ff49935feed0aee3e1963bb72eb5ea