You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On more: 'x' and 'xxxxxxxxx' gets the same hashvalue, because 'xxxx' XOR 'xxxx' evaluates to zero! Furthermore it seems the algorithm doesn't takes care of unicode - all values shifted by 8 bits.
My suggestions is to use/override the _key function with a better one (e.g. java hashCode or crc32):
Yah, seriously this hash needs to be changed. Within a couple of hours of trying out amplify I ran into puzzling, buggy behavior that indeed turned out to be cache key collisions.
To reproduce this issue please try this at browser console:
amplify.request.cache._key('ajax1', '/api/opqrstu/opqrstu-project-1/project/get')
it will resulting "request-ajax1-992640007"
now try with this:
amplify.request.cache._key('ajax1', '/api/abcdefg/abcdefg-project-1/project/get')
then you'll get same result "request-ajax1-992640007"
The text was updated successfully, but these errors were encountered: