If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

MultiValueDictKeyError: 'Key \'slug\' not found in <QueryDict: {u\'content\':

RESOLVED FIXED

Status

Mozilla Developer Network
Editing
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: groovecoder, Assigned: davidwalsh)

Tracking

Details

(Whiteboard: u=contributor c=wiki s=2012-06-19 p=1)

(Reporter)

Description

5 years ago
Traceback (most recent call last):

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

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

  File "/data/www/developer.mozilla.org/kuma/apps/access/decorators.py", line 46, in _wrapped_view
    return view_fn(request, *args, **kwargs)

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

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 841, in edit_document
    slug_split.append(post_data['slug'])

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/utils/datastructures.py", line 235, in __getitem__
    raise MultiValueDictKeyError("Key %r not found in %r" % (key, self))

MultiValueDictKeyError: 'Key \'slug\' not found in <QueryDict: {u\'content\': [u\'<h2 id="Methods_of_the_API">Methods of the API</h2>\\n<p>All methods related to apps are accessed from the <code>navigator.mozApps</code> object. There are two types of functions available in the API:</p>\\n<ul>\\n  <li>\\n    <p><a href="#Installation_API_(navigator.mozApps.*)" title="#Installation_API_(navigator.mozApps.*)"><strong>Installation Functions</strong></a>: related to the installation or management of installed apps. These are interesting to stores, self-distributing apps, and app directories.</p>\\n  </li>\\n  <li>\\n    <p><a href="#Management_API_(navigator.mozApps.mgmt.*)" title="#Management_API_(navigator.mozApps.mgmt.*)"><strong>Management Functions</strong></a>: related to the display, launch, or synchronization of apps. Primarily used by dashboards.</p>\\n  </li>\\n</ul>\\n\'], u\'form\': [u\'rev\'], u\'current_rev\': [u\'2199\']}>'


<WSGIRequest
GET:<QueryDict: {u'raw': [u'1'], u'section': [u'Methods_of_the_API'], u'edit_links': [u'true']}>,
POST:<QueryDict: {u'content': [u'<h2 id="Methods_of_the_API">Methods of the API</h2>\n<p>All methods related to apps are accessed from the <code>navigator.mozApps</code> object. There are two types of functions available in the API:</p>\n<ul>\n  <li>\n    <p><a href="#Installation_API_(navigator.mozApps.*)" title="#Installation_API_(navigator.mozApps.*)"><strong>Installation Functions</strong></a>: related to the installation or management of installed apps. These are interesting to stores, self-distributing apps, and app directories.</p>\n  </li>\n  <li>\n    <p><a href="#Management_API_(navigator.mozApps.mgmt.*)" title="#Management_API_(navigator.mozApps.mgmt.*)"><strong>Management Functions</strong></a>: related to the display, launch, or synchronization of apps. Primarily used by dashboards.</p>\n  </li>\n</ul>\n'], u'form': [u'rev'], u'current_rev': [u'2199']}>,
COOKIES:{
(none)',
 'browserid_explained': '1',
 'dloadday': '76.102.50.81.1337454542503151',
 'optimizelyBuckets': '%7B%2233162591%22%3A%2233149643%22%7D',
 'optimizelyEndUserId': 'oeu1338911108017r0.10554360337176472',
 'wtspl': '977756'},
META:{'CONTENT_LENGTH': '1011',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/data/www/developer.mozilla.org/kuma/webroot',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CACHE_CONTROL': 'no-cache',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_DNT': '1',
 'HTTP_HOST': 'developer-new.mozilla.org',
 'HTTP_PRAGMA': 'no-cache',
 'HTTP_REFERER': 'https://developer-new.mozilla.org/en-US/docs/Apps/Apps_JavaScript_API',
 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert',
 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/16.0 Firefox/16.0a1',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/en-US/docs/Apps/Apps_JavaScript_API$edit',
 'PATH_TRANSLATED': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi/en-US/docs/Apps/Apps_JavaScript_API$edit',
 'QUERY_STRING': 'section=Methods_of_the_API&edit_links=true&raw=1',
 'REMOTE_ADDR': '10.22.81.210',
 'REMOTE_PORT': '30603',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/en-US/docs/Apps/Apps_JavaScript_API$edit?section=Methods_of_the_API&edit_links=true&raw=1',
 'SCRIPT_FILENAME': '/data/www/developer.mozilla.org/kuma/wsgi/kuma.wsgi',
 'SCRIPT_NAME': u'',
 'SCRIPT_URI': 'http://developer-new.mozilla.org/en-US/docs/Apps/Apps_JavaScript_API$edit',
 'SCRIPT_URL': '/en-US/docs/Apps/Apps_JavaScript_API$edit',
 'SERVER_ADDR': '10.22.81.19',
 'SERVER_ADMIN': 'webmaster@mozilla.com',
 'SERVER_NAME': 'developer-new.mozilla.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '',
 'SERVER_SOFTWARE': 'Apache',
 'mod_wsgi.application_group': 'developer.mozilla.org|',
 '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': 'developer',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'platform.name': 'developer2.webapp.scl3.mozilla.com',
 'wsgi.errors': <mod_wsgi.Log object at 0x7f43b2411730>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f43b21827b0>,
 'wsgi.input': <mod_wsgi.Input object at 0x7f43b2833af0>,
 'wsgi.loaded': datetime.datetime(2012, 6, 8, 6, 38, 18, 306645),
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 1)}>
I believe this was fixed here:

https://github.com/mozilla/kuma/pull/264
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Whiteboard: u=contributor c=wiki s=2012-06-19 p=1
(Assignee)

Comment 2

5 years ago
Fixed this in:

https://github.com/mozilla/kuma/pull/264
Assignee: nobody → dwalsh
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.