Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SafeKeyGenerator Issue #51

Closed
shism2 opened this issue Nov 20, 2013 · 2 comments
Closed

SafeKeyGenerator Issue #51

shism2 opened this issue Nov 20, 2013 · 2 comments

Comments

@shism2
Copy link

shism2 commented Nov 20, 2013

For some reason, getSafeKey function is generating bad keys and I'm getting this exception:

E/AndroidRuntime(27304): FATAL EXCEPTION: bg_thread
E/AndroidRuntime(27304): java.lang.IllegalArgumentException: keys must match regex [a-z0-9_-]{1,64}: "????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????"
E/AndroidRuntime(27304):    at com.jakewharton.disklrucache.DiskLruCache.validateKey(DiskLruCache.java:660)
E/AndroidRuntime(27304):    at com.jakewharton.disklrucache.DiskLruCache.get(DiskLruCache.java:406)

When I debug through the function every key that's getting generated is just a long string of whitespace.

@sjudd
Copy link
Collaborator

sjudd commented Nov 20, 2013

What device and version are you seeing this on? Does the corresponding test (https://github.com/bumptech/glide/blob/master/library/tests/src/com/bumptech/glide/LruCacheTest.java) pass?

@shism2
Copy link
Author

shism2 commented Nov 20, 2013

Actually, I deleted my local copy of it and cloned it again and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants