sorl/sorl-thumbnail — Issue #66: Sorl thumbnail url cut short & url encoded
Author: BBB
Created: 2011-10-28 23:19:21+00:00
State: open

I'm having an issue with thumbs generated from sorl. I'm using memcached.

The files are converted & stored in the disk cache fine, but when they're cache url is requested through the template, it goes a little wrong.

The issue can be seen here: http://hackneyrfc.co.uk/coaches-blog/2011/10/28/guide-me-oh-thou-great-redeemer/

It appears that the thumbnail.url is being encoded & truncated at some point.

http://hackneyrfc.co.uk/media/c%00a%00c%00h%00e%00/%004%008%00/%006%003%00/%004%008%006%003%002%004%008%007%00a%00c%00d%008%00

is what is returned, which is equivalent to http://hackneyrfc.co.uk/media/cache/48/63/48632487acd8

the actual path should be: http://hackneyrfc.co.uk/media/cache/48/63/48632487acd80d1e241d5ddaba2b6038.jpg

The code that i'm using here to debug (the issue is the same across the site).
```
{% if article.single_image %}
{% thumbnail article.single_image "x310" crop="center" as im %}
{{article.single_image}}
{{ im }}
{{ im.url }}

{% endthumbnail %}
{% endif %}

```

Any idea what could be causing this. It was working a few days ago & is no longer now. I'm not sure what I've changed that could be affecting this.