|fix decryption of object if metadata is missing.patch | (download)
11 11 + 0 - 0 !
10 8 + 2 - 0 !
2 files changed, 19 insertions(+), 2 deletions(-)
fix decryption of objects if metadata is missing
In some cases, the Meta-Crypto is missing from object store's
metadata. If this happens, then Swift is enable to decrypt objects,
as it uses the object name instead of the "path" field that has been
used for encryption, resulting in a completely wrong decryption.
This patch fixes the problem by using the right "path" field as one of
the elements used to decrypt.