Traceback: AssertionError: Node has no children

RESOLVED WONTFIX

Status

Mozilla Developer Network
General
P2
normal
RESOLVED WONTFIX
5 years ago
4 years ago

People

(Reporter: retornam, Unassigned)

Tracking

Details

(Whiteboard: [closeme?], URL)

(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/apps/wiki/views.py", line 214, in _added_header
    response = func(request, *args, **kwargs)

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

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/views.py", line 731, in revision
    return jingo.render(request, 'wiki/revision.html', data)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/jingo/jingo/__init__.py", line 78, in render
    rendered = render_to_string(request, template, context)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string
    return template.render(**get_context())

  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/templates/wiki/revision.html", line 10, in top-level template code
    {% set classes = 'document' %}

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/templates/wiki/base.html", line 17, in top-level template code
    {% set scripts = ('wiki',) %}

  File "/data/www/developer.mozilla.org/kuma/templates/base.html", line 152, in top-level template code
    {% block content %}{% endblock %}

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/templates/wiki/revision.html", line 85, in block "content"
    <div class="page-content boxed">{{ revision.content|wiki_bleach }}</div>

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/helpers.py", line 166, in wiki_bleach
    return jinja2.Markup(Document.objects.clean_content(val))

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/models.py", line 358, in clean_content
    .filterIframeHosts(allowed_hosts)

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/content.py", line 146, in serialize
    return u"".join(self.serializer.serialize(stream))

  File "/data/www/developer.mozilla.org/kuma/vendor/packages/html5lib/src/html5lib/serializer/htmlserializer.py", line 103, in serialize
    for token in treewalker:

  File "/data/www/developer.mozilla.org/kuma/apps/wiki/content.py", line 697, in __iter__
    for token in html5lib_Filter.__iter__(self):

  File "/data/www/developer.mozilla.org/kuma/vendor/packages/html5lib/src/html5lib/treewalkers/_base.py", line 143, in __iter__
    firstChild = self.getFirstChild(currentNode)

  File "/data/www/developer.mozilla.org/kuma/vendor/packages/html5lib/src/html5lib/treewalkers/simpletree.py", line 52, in getFirstChild
    assert node.hasContent(), "Node has no children"

AssertionError: Node has no children
Priority: -- → P2

Comment 1

4 years ago
Is this still an issue or can I close?
Flags: needinfo?(mozbugs.retornam)
Whiteboard: [closeme?]
(Reporter)

Comment 2

4 years ago
closing since it has been over a year
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Flags: needinfo?(mozbugs.retornam)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.