Issue Details (XML | Word | Printable)

Key: FLM-158
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adam Zieliński
Reporter: Borys Musielak
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Filmaster

DoesNotExist: Forum matching query does not exist.

Created: 16/Aug/09 11:12 AM   Updated: 17/Jan/10 09:27 PM
Component/s: Forum and comments
Affects Version/s: 1.0
Fix Version/s: 1.0


 Description  « Hide
1. Catch the exception when trying to open a non-existing forum and throw 404
2. Check where do we have a link to this site /forum/account/register/ and fix it.

Traceback (most recent call last):

 File "/home/filmaster/django-trunk/django/core/handlers/base.py", line 86, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/home/filmaster/film20/film20/forum/views.py", line 76, in show_thread
   forum = Forum.objects.get(permalink=permalink, LANG=LANGUAGE_CODE, film_forum=None, person_forum=None)

 File "/home/filmaster/django-trunk/django/db/models/manager.py", line 93, in get
   return self.get_query_set().get(*args, **kwargs)

 File "/home/filmaster/django-trunk/django/db/models/query.py", line 303, in get
   % self.model._meta.object_name)

DoesNotExist: Forum matching query does not exist.


<ModPythonRequest
path:/forum/account/register/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0L,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': '*/*',
 'HTTP_COOKIE': '',
 'HTTP_HOST': 'filmaster.com',
 'HTTP_PROXY_CONNECTION': 'Keep-Alive',
 'HTTP_REFERER': 'http://filmaster.com/account/register/',
 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727)',
 'PATH_INFO': u'/forum/account/register/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': None,
 'REMOTE_ADDR': '95.215.1.13',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'filmaster.com',
 'SERVER_PORT': 0,
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'mod_python'}>

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Borys Musielak added a comment - 27/Nov/09 10:13 AM
This error keeps happening in prod. It's worth taking a look.

Adam Zieliński added a comment - 31/Dec/09 09:09 PM
I've replaced all get() methods with get_objects_or_404 the code is still ugly but it shouldn't throw errors now.

Borys Musielak added a comment - 17/Jan/10 09:22 PM
Reopened to move to 1.0 version.