Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
No-Version
-
Severity 3 - Minor
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
When viewing tags, I get the following error:
TemplateSyntaxError at /tags/confluence-ondemand/ Caught ValueError while rendering: invalid literal for int() with base 10: 'forum.question.97558' Request Method: GET Request URL: http://answers-development.atlassian.com/tags/confluence-ondemand/ Django Version: 1.2.5 Exception Type: TemplateSyntaxError Exception Value: Caught ValueError while rendering: invalid literal for int() with base 10: 'forum.question.97558' Exception Location: /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 479 Python Executable: /opt/python/domains/atlassian.com/osqa-development/python26_test/bin/python2.6 Python Version: 2.6.5 Python Path: ['/opt/python/domains/atlassian.com/osqa-development/answers', '/opt/python/domains/atlassian.com/osqa-development', '/opt/python/domains/atlassian.com/osqa-development/python26_test/bin', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/pip-1.1-py2.6.egg', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python26.zip', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python2.6', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python2.6/plat-linux2', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python2.6/lib-tk', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python2.6/lib-old', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib64/python2.6/lib-dynload', '/usr/lib/python2.6', '/usr/lib64/python2.6', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/PIL', '/opt/python/domains/atlassian.com/osqa-development/answers/forum/markdownext', '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/south/tests'] Server time: Mon, 5 Nov 2012 12:21:11 -0500 Template error In template /opt/python/domains/atlassian.com/osqa-development/answers/forum/skins/atlassian/templates/questions.html, error at line 54 Caught ValueError while rendering: invalid literal for int() with base 10: 'forum.question.97558' 44 </div> 45 {% endif %} 46 {% endif %} 47 {% if page == 'tagged' %} 48 {% include "subscription_tag_status.html" %} 49 {% endif %} 50 {% sidebar_upper %} 51 {% recent_tags %} 52 {% sidebar_lower %} 53 {% tag_selector %} 54 {% question_list_related_tags questions.paginator.page %} 55 {% recent_awards %} 56 {% include "question_list/count.html" %} 57 {% endblock %} 58 <!-- end questions.html --> 59 Traceback Switch to copy-and-paste view /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/core/handlers/base.py in get_response response = callback(request, *callback_args, **callback_kwargs) ... ▼ Local vars Variable Value callback <function tagged at 0x73fa050> callback_args () callback_kwargs {'tags': u'confluence-ondemand'} e TemplateSyntaxError(u"Caught ValueError while rendering: invalid literal for int() with base 10: 'forum.question.97558'",) exceptions <module 'django.core.exceptions' from '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/core/exceptions.pyc'> middleware_method <bound method TransactionMiddleware.process_exception of <django.middleware.transaction.TransactionMiddleware object at 0x74f3dd0>> receivers [(<function _rollback_on_exception at 0x61b3de8>, None)] request <WSGIRequest GET:<QueryDict: {u'q': [u'[confluence-ondemand]']}>, POST:<QueryDict: {}>, COOKIES:{'__qca': 'P0-134464562-1346879684839', '__utma': '80426056.2096174254.1347044638.1351901826.1352136056.23', '__utmb': '80426056.9.10.1352136056', '__utmc': '80426056', '__utmz': '80426056.1351901826.22.9.utmcsr=flx.me|utmccn=(referral)|utmcmd=referral|utmcct=/atlassian/', 'csrftoken': '2fc2e41bdb0b5f31765be241524901d3', 'optimizelyBuckets': '%7B%7D', 'optimizelyEndUserId': 'oeu1346825522032r0.7542416675138945', 'sessionid': '392a284e53ebebe836a13c71735403c2'}, META:{'CSRF_COOKIE': '2fc2e41bdb0b5f31765be241524901d3', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': '__utma=80426056.2096174254.1347044638.1351901826.1352136056.23; __utmz=80426056.1351901826.22.9.utmcsr=flx.me|utmccn=(referral)|utmcmd=referral|utmcct=/atlassian/; optimizelyEndUserId=oeu1346825522032r0.7542416675138945; optimizelyBuckets=%7B%7D; __qca=P0-134464562-1346879684839; sessionid=392a284e53ebebe836a13c71735403c2; __utmb=80426056.9.10.1352136056; __utmc=80426056; csrftoken=2fc2e41bdb0b5f31765be241524901d3', 'HTTP_HOST': 'answers-development.atlassian.com', 'HTTP_REFERER': 'https://answers-development.atlassian.com/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/19.0 Firefox/19.0', 'HTTP_X_FORWARDED_FOR': '70.35.42.138, 172.16.1.187', 'HTTP_X_REAL_IP': '70.35.42.138', 'PATH_INFO': u'/tags/confluence-ondemand/', 'QUERY_STRING': '', 'RAW_URI': '/tags/confluence-ondemand/', 'REMOTE_ADDR': '172.16.1.187', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'answers-development.atlassian.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/0.14.1', 'gunicorn.socket': <socket._socketobject object at 0x7b3e750>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x2ac8408db1e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x5ff6d70>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7cb40d0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver <RegexURLResolver urls (None:None) ^/> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x6858390> settings <django.conf.LazySettings object at 0x60a30d0> urlconf 'urls' urlresolvers <module 'django.core.urlresolvers' from '/opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/core/urlresolvers.pyc'> /opt/python/domains/atlassian.com/osqa-development/answers/forum/modules/decorators.py in decorated return decoratable(*args, **kwargs) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/answers/forum/modules/decorators.py in __call__ res = dec(res, *args, **kwargs) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/answers/forum/views/decorators.py in decorated context_instance=RequestContext(request)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/shortcuts/__init__.py in render_to_response return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/loader.py in render_to_string return t.render(context_instance) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render return self._render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in _render return self.nodelist.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render bits.append(self.render_node(node, context)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/debug.py in render_node result = node.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/loader_tags.py in render return compiled_parent._render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in _render return self.nodelist.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render bits.append(self.render_node(node, context)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/debug.py in render_node result = node.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/loader_tags.py in render return compiled_parent._render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in _render return self.nodelist.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render bits.append(self.render_node(node, context)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/debug.py in render_node result = node.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/loader_tags.py in render result = block.nodelist.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render bits.append(self.render_node(node, context)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/debug.py in render_node result = node.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/loader_tags.py in render result = block.nodelist.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render bits.append(self.render_node(node, context)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/debug.py in render_node result = node.render(context) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/template/__init__.py in render dict = func(*args) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/answers/forum/templatetags/question_list_tags.py in question_list_related_tags tags = Tag.objects.filter(nodes__id__in=[q.id for q in questions]).distinct() ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/manager.py in filter return self.get_query_set().filter(*args, **kwargs) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/query.py in filter return self._filter_or_exclude(False, *args, **kwargs) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/query.py in _filter_or_exclude clone.query.add_q(Q(*args, **kwargs)) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/sql/query.py in add_q can_reuse=used_aliases, force_having=force_having) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/sql/query.py in add_filter connector) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/sql/where.py in add value = obj.prepare(lookup_type, value) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/sql/where.py in prepare return self.field.get_prep_lookup(lookup_type, value) ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/fields/__init__.py in get_prep_lookup return [self.get_prep_value(v) for v in value] ... ▶ Local vars /opt/python/domains/atlassian.com/osqa-development/python26_test/lib/python2.6/site-packages/django/db/models/fields/__init__.py in get_prep_value return int(value) ... ▶ Local vars
eternicode any idea why this happens?
Thanks,
Dennis
Attachments
Issue Links
- relates to
-
CONFCLOUD-47039 questions.paginator.page generates TemplateSyntaxError invalid literal for int() with base 10
- Closed