Closed
Bug 584700
Opened 16 years ago
Closed 16 years ago
Cache Machine doesn't like UCS-2 in keys
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 564973
People
(Reporter: jsocol, Unassigned)
Details
This is actually a cache-machine bug. I filed http://github.com/jbalogh/django-cache-machine/issues/#issue/7 and will work with Jeff to fix it.
File "/data/virtualenvs/kitsune/src/django/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/www/support.mozilla.com/kitsune/apps/forums/views.py", line 98, in posts
'feeds': feed_urls})
File "/data/virtualenvs/kitsune/src/jingo/jingo/__init__.py", line 61, in render
rendered = render_to_string(request, template, context)
File "/data/virtualenvs/kitsune/src/jingo/jingo/__init__.py", line 80, in render_to_string
ret = template.render(**context)
File "/data/virtualenvs/kitsune/lib/python2.6/site-packages/jinja2/environment.py", line 669, in render
return self.environment.handle_exception(exc_info, True)
File "/data/www/support.mozilla.com/kitsune/apps/forums/templates/forums/posts.html", line 6, in top-level template code
{% set crumbs = [(url('forums.forums'), _('Forums')),
File "/data/www/support.mozilla.com/kitsune/apps/forums/templates/forums/base.html", line 4, in top-level template code
{% set scripts = ('forums',) %}
File "/data/www/support.mozilla.com/kitsune/templates/common/base.html", line 2, in top-level template code
{% extends "layout/base.html" %}
File "/data/www/support.mozilla.com/kitsune/templates/layout/base.html", line 59, in top-level template code
{% block content_area %}
File "/data/www/support.mozilla.com/kitsune/templates/common/base.html", line 8, in block "content_area"
{% block content %}
File "/data/www/support.mozilla.com/kitsune/apps/forums/templates/forums/posts.html", line 85, in block "content"
{{ post.content_parsed }}
File "/data/virtualenvs/kitsune/lib/python2.6/site-packages/jinja2/environment.py", line 350, in getattr
return getattr(obj, attribute)
File "/data/www/support.mozilla.com/kitsune/apps/forums/models.py", line 178, in content_parsed
return wiki_to_html(self.content)
File "/data/www/support.mozilla.com/kitsune/apps/sumo/utils.py", line 50, in wiki_to_html
return jinja2.Markup(parser.parse(wiki_markup, False))
File "/data/www/support.mozilla.com/kitsune/apps/sumo/parser.py", line 46, in parse
text, showToc, attributes=ALLOWED_ATTRIBUTES)
File "/data/virtualenvs/kitsune/src/py-wikimarkup/wikimarkup/parser.py", line 2284, in parse
return p.parse(text)
File "/data/virtualenvs/kitsune/src/py-wikimarkup/wikimarkup/parser.py", line 1696, in parse
text = self.replaceInternalLinks(text)
File "/data/virtualenvs/kitsune/src/py-wikimarkup/wikimarkup/parser.py", line 1115, in replaceInternalLinks
sb.append(mInternalLinkHooks[space](self, space, name))
File "/data/www/support.mozilla.com/kitsune/apps/sumo/parser.py", line 80, in hookInternalLink
link = self._getWikiLink(link)
File "/data/www/support.mozilla.com/kitsune/apps/sumo/parser.py", line 53, in _getWikiLink
return WikiPage.objects.get(title=link).get_url()
File "/data/virtualenvs/kitsune/src/django/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/data/virtualenvs/kitsune/src/django/django/db/models/query.py", line 336, in get
num = len(clone)
File "/data/virtualenvs/kitsune/src/django/django/db/models/query.py", line 81, in __len__
self._result_cache = list(self.iterator())
File "/data/virtualenvs/kitsune/src/django-cache-machine/caching/base.py", line 105, in __iter__
query_key = self.query_key()
File "/data/virtualenvs/kitsune/src/django-cache-machine/caching/base.py", line 101, in query_key
return make_key('qs:%s' % self.query_string)
File "/data/virtualenvs/kitsune/src/django-cache-machine/caching/base.py", line 271, in make_key
return hashlib.md5(key).hexdigest()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 676-684: ordinal not in range(128)
Comment 1•16 years ago
|
||
Borrowed the keys to the time machine last night, so I went back and fixed this three months ago.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•