Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1998 by develop...@handbrake.fr: Error when visiting user profile page: [Django] Error (EXTERNAL IP): /users/
http://code.google.com/p/reviewboard/issues/detail?id=1998

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*       reviewbo...@googlegroups.com                             *

What version are you running?
1.6 Beta 1


What's the URL of the page containing the problem?
https://reviews.handbrake.fr/users/handbrake/


What steps will reproduce the problem?
1. Visit the User profile page without logging in. We then receive an email from django "[Django] Error (EXTERNAL IP): /users/...", cotent listed below. 2. When you login, the page appears but often displays information from a different user to the one selected.

It's possible I've botched something when I did the manual upgrade to 1.6 (new site install, then manual database migration (the rb-site upgrade had trouble resolving a whole raft of models)

Any hints would be welcome.


What is the expected output? What do you see instead?

Email Content:
Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/python2.5/site-packages/ReviewBoard-1.6beta1-py2.5.egg/reviewboard/accounts/decorators.py", line 27, in _check
    return view_func(*args, **kwargs)

File "/usr/lib/python2.5/site-packages/ReviewBoard-1.6beta1-py2.5.egg/reviewboard/reviews/views.py", line 651, in submitter
    return datagrid.render_to_response(template_name)

File "/usr/lib/python2.5/site-packages/Djblets-0.6.7-py2.5.egg/djblets/datagrid/grids.py", line 713, in render_to_response
    context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/shortcuts/__init__.py", line 20, in render_to_response return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/loader.py", line 186, in render_to_string
    return t.render(context_instance)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 173, in render
    return self._render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 809, in render_node
    return node.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/loader_tags.py", line 125, in render
    return compiled_parent._render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 809, in render_node
    return node.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/loader_tags.py", line 125, in render
    return compiled_parent._render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 809, in render_node
    return node.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 809, in render_node
    return node.render(context)

File "/usr/lib/python2.5/site-packages/Djblets-0.6.7-py2.5.egg/djblets/util/decorators.py", line 186, in render
    return self.tag_func(context, self.nodelist, *args)

File "/usr/lib/python2.5/site-packages/Djblets-0.6.7-py2.5.egg/djblets/util/templatetags/djblets_deco.py", line 44, in box
    'content': nodelist.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 809, in render_node
    return node.render(context)

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/template/__init__.py", line 927, in render
    return func(*resolved_vars)

File "/usr/lib/python2.5/site-packages/Djblets-0.6.7-py2.5.egg/djblets/gravatars/templatetags/gravatars.py", line 51, in gravatar
    if not user.email:

File "/usr/lib/python2.5/site-packages/Django-1.2.5-py2.5.egg/django/utils/functional.py", line 277, in __getattr__
    return getattr(self._wrapped, name)

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


<WSGIRequest
GET:<QueryDict: {u'sort': [u'last_updated_since,-submitter']}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'DOCUMENT_ROOT': '/www/Reviews/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_CONNECTION': 'Keep-alive',
 'HTTP_FROM': 'googlebot(at)googlebot.com',
 'HTTP_HOST': 'reviews.handbrake.fr',
'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
 'PATH_INFO': u'/users/<username>/',
 'PATH_TRANSLATED': '/www/Reviews/htdocs/users/<username>/',
 'QUERY_STRING': 'sort=last_updated_since,-submitter',
 'REDIRECT_STATUS': '200',
 'REDIRECT_URI': 
'/reviewboard.fcgi/users/<username>/?sort=last_updated_since,-submitter',
 'REMOTE_ADDR': '::ffff:66.249.72.43',
 'REMOTE_PORT': '62056',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/users/<username>/?sort=last_updated_since,-submitter',
 'SCRIPT_FILENAME': '/www/Reviews/htdocs/reviewboard.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '::ffff:---.---.---.---',
 'SERVER_NAME': '-------.---------.--',
 'SERVER_PORT': '443',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'lighttpd/1.4',
 'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x957670c>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x959036c>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 0)}>


What operating system are you using? What browser?
Debian Lenny (5.0)

Please provide any additional information below.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to