500 error when viewing tags anonymously

XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      Updated description:
      This occurs when visiting a tag anonymously.

      Traceback (most recent call last):

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/core/handlers/base.py", line 100, in get_response
      response = callback(request, *callback_args, **callback_kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-19495/forum/modules/decorators.py", line 95, in decorated
      return decoratable(*args, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-19495/forum/modules/decorators.py", line 55, in _call_
      res = self._callable(*args, **kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-19495/forum/views/readers.py", line 131, in tagged
      'subscription': request.user.tag_selections.filter(reason='good', tag__name=tags[0]).exists()

      AttributeError: 'AnonymousUser' object has no attribute 'tag_selections'

      <WSGIRequest
      GET:<QueryDict:

      {u'q': [u'[agile]']}

      >,
      POST:<QueryDict: {}>,
      COOKIES:{},
      META:{'CONTENT_LENGTH': '',
      'CONTENT_TYPE': '',
      'CSRF_COOKIE': '1b1a860acfc8970df039f7c2d6b69cd7',
      'HTTP_CONNECTION': 'close',
      'HTTP_HOST': 'answers.atlassian.com',
      'HTTP_USER_AGENT': 'System Center Operations Manager 2007 6.1.7221.0',
      'HTTP_X_FORWARDED_FOR': '194.78.165.227, 172.16.3.45',
      'HTTP_X_REAL_IP': '194.78.165.227',
      'PATH_INFO': u'/tags/agile/',
      'QUERY_STRING': '',
      'RAW_URI': '/tags/agile/',
      'REMOTE_ADDR': '172.16.3.45',
      'REMOTE_PORT': '80',
      'REQUEST_METHOD': 'GET',
      'SCRIPT_NAME': u'',
      'SERVER_NAME': 'answers.atlassian.com',
      'SERVER_PORT': '80',
      'SERVER_PROTOCOL': 'HTTP/1.0',
      'SERVER_SOFTWARE': 'gunicorn/0.12.0',
      'gunicorn.socket': <socket._socketobject object at 0x15542c90>,
      'wsgi.errors': <open file '<stderr>', mode 'w' at 0x2b9679d7e1e0>,
      'wsgi.input': <gunicorn.http.body.Body object at 0x1cb38650>,

              Assignee:
              eternicode
              Reporter:
              Jeremy Largman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: