We discovered that sometimes under certain circumstances an invalid object was stored in the cache (possibly a File.exists() returned a false due to high load despite the presence of the file), which then led to NullPointerExceptions and empty assets. Furthermore, this invalid object did not disappear from the cache.
This PR improves the AssetHelper.getByteDigest(byte[] fileBytes) method to make the hashing algorithm and an additional salt configurable.
We discovered that sometimes under certain circumstances an invalid object was stored in the cache (possibly a File.exists() returned a false due to high load despite the presence of the file), which then led to NullPointerExceptions and empty assets. Furthermore, this invalid object did not disappear from the cache.
This PR improves the
AssetHelper.getByteDigest(byte[] fileBytes)
method to make the hashing algorithm and an additional salt configurable.