Correctly compute uploaded avatar hash
Review Request #8840 — Created March 24, 2017 and submitted — Latest diff uploaded
The file upload avatar service was incorrectly computing the file hash
for use in ETag computations, but only if thefile_hash
was not
already cached in the user's settings. This issue has been fixed.
Uploaded an avatar and deleted the
file_cache
key. It caused an
AttributeError
. After applying this patch, the error would not
reproduce.