Closed Bug 1062856 Opened 7 years ago Closed 6 years ago

[ISE] Internal Server Error previewing any API Reference page


( Graveyard :: General, defect, P1)



(Not tracked)



(Reporter: sheppy, Unassigned)



(Whiteboard: [specification][type:bug])

What did you do?
1. Visited
2. Clicked Edit button.
3. Clicked Preview button.

What happened?
Got an internal server error.

What should have happened?
A preview of the page should have appeared.

Is there anything else we should know?
Also happens for sure on:

and more
I can confirm that we get an ISE. Luke, can you tell us whether this bug is affecting a lot of people, and can you tell us what the stack says about this?

:teoli and :fscholz think this may be a regression that appeared in the last couple of weeks.
Severity: normal → major
Flags: needinfo?(lcrouch)
39 errors in the last week.
Flags: needinfo?(lcrouch)
It's worth noting of course that once someone figures out that clicking "Preview" always gets them an Internal Server Error, they will stop clicking it. :)
Duplicate of this bug: 1065638
Duplicate of this bug: 1081671
Tracebacks look like:

Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/newrelic-", line 492, in wrapper return wrapped(*args, **kwargs)
File "/data/www/", line 46, in _wrapped_view return view_fn(request, *args, **kwargs)
File "/data/www/", line 41, in inner return func(request, *args, **kwargs)
File "/data/www/", line 1339, in preview_revision return render(request, 'wiki/preview.html', data)
File "/data/www/", line 44, in render return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/data/www/", line 176, in render_to_string return t.render(context_instance)
File "/data/www/", line 191, in render return super(Template, self).render(context_dict)
File "/usr/lib64/python2.6/site-packages/newrelic-", line 96, in dynamic_wrapper return wrapped(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/jinja2/", line 891, in render return self.environment.handle_exception(exc_info, True)
File "/data/www/", line 3, in top-level template code {% set classes = 'document' %}
File "/data/www/", line 14, in top-level template code {% set scripts = ('wiki',) %}
File "/data/www/", line 161, in top-level template code {% block content %}{% endblock %}
File "/data/www/", line 9, in block "content" {% include 'wiki/includes/kumascript_errors.html' %}
File "/data/www/", line 50, in top-level template code {{ _('Parsing macro:') }} <code>{{ template_name }}({% if error_meta.token %}{{ error_meta.token.args }}{% endif %})</code> (<a href="{{ url('wiki.edit_document', document.slug) }}">{{ _('Edit Document') }}</a>)<br>
File "/usr/lib64/python2.6/site-packages/jinja2/", line 371, in getattr return getattr(obj, attribute)
UndefinedError: 'document' is undefined 

Bumping based on email on MDN-drivers list from Nickolay Ponomarev

"This is a regression in basic wiki functionality that affects a large
number of pages. I'd expect it to have a higher priority - it has been
sitting there untouched for a month."
Flags: needinfo?(mars)
Flags: needinfo?(hoosteeno)
Priority: -- → P1
PR is in for this.  I didn't see it come in originally.
Commits pushed to master at
fix bug 1062856 - Prevent ISE on kumascript errors within preview
Merge pull request #2822 from groovecoder/ks-preview-ise-1062856

fix bug 1062856 - Prevent ISE on kumascript errors within preview
Closed: 6 years ago
Resolution: --- → FIXED
Flags: needinfo?(mars)
Flags: needinfo?(hoosteeno)
Product: → Graveyard
You need to log in before you can comment on or make changes to this bug.