Package: python-moinmoin
Version: 1.9.4-8+deb7u2
Severity: normal

Dear Maintainer,

the MoinMoin Wiki results in a server error when doing the following steps:

1. Create a page using the text editor using the following content:
 :: Test
 . Test

2. Edit the page in GUI mode

3. Save the page or load the preview

The result is an internal server error. In the apache error.log you can find the
following lines:

[Tue Oct 22 11:52:19 2013] [error] 2013-10-22 11:52:19,800 ERROR 
MoinMoin.wsgiapp:293 An exception has occurred [${URL of your wiki page}].
[Tue Oct 22 11:52:19 2013] [error] Traceback (most recent call last):
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 282, in __call__
[Tue Oct 22 11:52:19 2013] [error]     response = run(context)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 88, in run
[Tue Oct 22 11:52:19 2013] [error]     response = dispatch(request, context, 
action_name)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 136, in dispatch
[Tue Oct 22 11:52:19 2013] [error]     response = handle_action(context, 
pagename, action_name)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 195, in 
handle_action
[Tue Oct 22 11:52:19 2013] [error]     handler(context.page.page_name, context)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/action/edit.py", line 92, in execute
[Tue Oct 22 11:52:19 2013] [error]     savetext = convert(request, pagename, 
savetext)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 1456, in convert
[Tue Oct 22 11:52:19 2013] [error]     text = convert_tree(request, 
pagename).do(tree)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 467, in do
[Tue Oct 22 11:52:19 2013] [error]     self.visit(tree.documentElement)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 413, in visit
[Tue Oct 22 11:52:19 2013] [error]     return self.visit_element(node)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 519, in visit_element
[Tue Oct 22 11:52:19 2013] [error]     func(node)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 562, in process_page
[Tue Oct 22 11:52:19 2013] [error]     self.visit_element(i)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 519, in visit_element
[Tue Oct 22 11:52:19 2013] [error]     func(node)
[Tue Oct 22 11:52:19 2013] [error]   File 
"/usr/lib/python2.7/dist-packages/MoinMoin/converter/text_html_text_moin_wiki.py",
 line 642, in process_dl
[Tue Oct 22 11:52:19 2013] [error]     raise ConvertError("Illegal list element 
%s" % i.localName)
[Tue Oct 22 11:52:19 2013] [error] ConvertError: Illegal list element ul

I saw this problem in a number of different cases. It seems to me like the GUI 
editor
sometimes creates invalid HTML and moinmoin then fails to interpret that. 
Specifically
I saw cases where there was a <dd> without a <dt> or a <ul> as a direct child 
of a <dl>.

I the case above it's the following code:
<dl>
    <dt><br />
    </dt>
    <dd>Test </dd>
    <ul>
        <li style="list-style-type:none">Test</li>
    </ul>
</dl>



-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (700, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF8, LC_CTYPE=de_DE.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-moinmoin depends on:
ii  python                2.7.3-4+deb7u1
ii  python-parsedatetime  0.8.7-3
ii  python-pygments       1.5+dfsg-1
ii  python-recaptcha      1.0.6-1
ii  python-werkzeug       0.8.3+dfsg-1

Versions of packages python-moinmoin recommends:
ii  apache2-mpm-prefork [httpd-cgi]            2.2.22-13
ii  exim4-daemon-light [mail-transport-agent]  4.80-7
ii  fckeditor                                  1:2.6.6-3
ii  libapache2-mod-wsgi                        3.3-4
ii  python-xapian                              1.2.12-2
ii  python-xappy                               0.5-5

Versions of packages python-moinmoin suggests:
pn  antiword                    <none>
pn  catdoc                      <none>
pn  cifs-utils                  <none>
pn  docbook-dsssl               <none>
pn  poppler-utils | xpdf-utils  <none>
pn  python-4suite-xml           <none>
pn  python-docutils             <none>
pn  python-flup                 <none>
pn  python-gdchart              <none>
pn  python-ldap                 <none>
ii  python-mysqldb              1.2.3-2
pn  python-openid               <none>
pn  python-pyxmpp               <none>
pn  python-tz                   <none>
pn  python-xml                  <none>
ii  wamerican [wordlist]        7.1-1

-- Configuration Files:
/etc/moin/mywiki.py changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to