Closed Bug 765606 Opened 12 years ago Closed 12 years ago

Kuma: /ja/docs/HTML/Element/caption$history - DoesNotExist: Revision matching query does not exist.

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 766003

People

(Reporter: lorchard, Unassigned)

References

()

Details

No idea what's going on here:

Traceback (most recent call last):

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django-waffle/waffle/decorators.py", line 20, in _wrapped_view
    return view(request, *args, **kwargs)

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/views/decorators/http.py", line 37, in inner
    return func(request, *args, **kwargs)

  File "/data/www/django/developer.mozilla.org/kuma/apps/wiki/views.py", line 133, in process
    return func(request, *args, **kwargs)

  File "/data/www/django/developer.mozilla.org/kuma/apps/wiki/views.py", line 977, in document_revisions
    curr_id = doc.current_revision.id

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/db/models/fields/related.py", line 311, in __get__
    rel_obj = rel_mgr.using(db).get(**params)

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 347, in get
    % self.model._meta.object_name)

DoesNotExist: Revision matching query does not exist.


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'CSRF_COOKIE': 'c0a39f1f460782e43869d64b9e7d9675',
 'DOCUMENT_ROOT': '/data/www/dekiwiki',
 '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': 'developer.mozilla.org',
 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert',
 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128',
 'HTTP_SSLSESSIONID': 'A2AF4F5E79569E09B669305B865DED022553A7324E4356C18F14BCBDB4C07E37',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
 'HTTP_X_CLUSTER_CLIENT_IP': '66.249.68.17',
 'PATH_INFO': u'/ja/docs/ja/HTML/Element/caption$history',
 'PATH_TRANSLATED': 'redirect:/mwsgi/ja/docs/ja/HTML/Element/caption$history/docs/ja/HTML/Element/caption$history',
 'QUERY_STRING': '',
 'REDIRECT_HTTPS': 'on',
 'REDIRECT_SCRIPT_URI': 'http://developer.mozilla.org/ja/docs/ja/HTML/Element/caption$history',
 'REDIRECT_SCRIPT_URL': '/ja/docs/ja/HTML/Element/caption$history',
 'REDIRECT_STATUS': '200',
 'REDIRECT_URL': '/ja/docs/ja/HTML/Element/caption$history',
 'REDIRECT_force-proxy-request-1.0': '1',
 'REDIRECT_proxy-nokeepalive': '1',
 'REMOTE_ADDR': '10.22.81.210',
 'REMOTE_PORT': '34102',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/ja/docs/ja/HTML/Element/caption$history',
 'SCRIPT_FILENAME': '/data/www/django/developer.mozilla.org/kuma/wsgi/kuma.wsgi',
 'SCRIPT_NAME': u'',
 'SCRIPT_URI': 'http://developer.mozilla.org/ja/docs/ja/HTML/Element/caption$history',
 'SCRIPT_URL': '/ja/docs/ja/HTML/Element/caption$history',
 'SERVER_ADDR': '10.22.81.29',
 'SERVER_ADMIN': 'webmaster@mozilla.com',
 'SERVER_NAME': 'developer.mozilla.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '',
 'SERVER_SOFTWARE': 'Apache',
 'force-proxy-request-1.0': '1',
 'mod_wsgi.application_group': 'developer.mozilla.org|/mwsgi',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '81',
 'mod_wsgi.process_group': 'mdn_prod',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'platform.name': 'dekiwiki2.webapp.scl3.mozilla.com',
 'proxy-nokeepalive': '1',
 'wsgi.errors': <mod_wsgi.Log object at 0xb5f2bd8>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xb52f4e8>,
 'wsgi.input': <mod_wsgi.Input object at 0xb5f27f0>,
 'wsgi.loaded': datetime.datetime(2012, 6, 17, 12, 12, 41, 701353),
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 1)}>
Summary: Kuma: DoesNotExist: Revision matching query does not exist. → Kuma: /ja/docs/HTML/Element/caption$history - DoesNotExist: Revision matching query does not exist.
Here's the *really* odd thing about this bug (and probably bug 765607): It was sent by developer.mozilla.org - and *not* developer-new.mozilla.org

Even though "kumawiki" was set to disallow access to anyone but superusers, it was somehow letting some people in from search engines. I just deleted the kumawiki flag altogether, and the 500 ISE turned into a 404.

So...

1) I don't know why waffle seemed to be letting people in through to kuma, and

2) I don't know how people are getting links to kuma on developer.mozilla.org
Duping this in favor of bug 766003. I think the reason this error has come up is that the "kumawiki" waffle flag is not working right. How people got to this URL, I don't know, but it should have been a 404
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.