darcs

Issue 791 editing wiki in gui mode gives an error

Title editing wiki in gui mode gives an error
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2008-04-10.01:09:47 by simon, last changed 2009-08-27.13:58:30 by admin.

Messages
msg4221 (view) Author: simon Date: 2008-04-10.01:09:45
Trying to update the release link on the wiki front page gave an error.
Traceback pasted below.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls
leading up to the error, in the order they occurred.

   1.

      /var/lib/python-support/python2.4/MoinMoin/request.py in run
(self=<MoinMoin.request.RequestCGI object>)
         1. 1135 from MoinMoin.wikiaction import getHandler
         2. 1136 handler = getHandler(self, action)
         3. 1137 handler(self.page.page_name, self)
         4. 1138
         5. 1139 # 5. Or redirect to another page
          * handler = <function do_edit>
          * self = <MoinMoin.request.RequestCGI object>
          * self.page = <MoinMoin.Page.Page instance>
          * self.page.page_name = u'FrontPage'
   2.

      /var/lib/python-support/python2.4/MoinMoin/wikiaction.py in do_edit
(pagename=u'FrontPage', request=<MoinMoin.request.RequestCGI object>)
         1. 576 try:
         2. 577 if lasteditor == 'gui':
         3. 578 savetext = convert(request, pagename, savetext)
         4. 579
         5. 580 # IMPORTANT: normalize text from the form. This should be done in
          * savetext = u'<pre class="comment">##language:en</pre><pre
cla...goryHomepage">CategoryHomepage</a> </p></li></ul>'
          * convert = <function convert>
          * request = <MoinMoin.request.RequestCGI object>
          * pagename = u'FrontPage'
   3.

     
/var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in
convert (request=<MoinMoin.request.RequestCGI object>, pagename=u'FrontPage',
text=u'<page><pre
class="comment">##language:en</pre><p...epage">CategoryHomepage</a>
</p></li></ul></page>')
         1. 1206 def convert(request, pagename, text):
         2. 1207 text = u"<page>%s</page>" % text
         3. 1208 tree = parse(request, text)
         4. 1209 strip_whitespace().do(tree)
         5. 1210 text = convert_tree(request, pagename).do(tree)
          * tree undefined
          * global parse = <function parse>
          * request = <MoinMoin.request.RequestCGI object>
          * text = u'<page><pre
class="comment">##language:en</pre><p...epage">CategoryHomepage</a>
</p></li></ul></page>'
   4.

     
/var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in
parse (request=<MoinMoin.request.RequestCGI object>, text='<?xml
version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...epage">CategoryHomepage</a>
</p></li></ul></page>')
         1. 1200 f = file(logname, "w")
         2. 1201 f.write(text)
         3. 1202 f.write("\n" + "-"*80 + "\n" + msg)
         4. 1203 f.close()
         5. 1204 raise ConvertError('ExpatError: %s (see dump in %s)' % (msg,
logname))
          * f = <open file '/var/www/DarcsWiki/data/expaterror.log', mode 'w'>
          * f.write = <built-in method write of file object>
          * msg = <xml.parsers.expat.ExpatError instance>

TypeError

cannot concatenate 'str' and 'instance' objects

    * args = ("cannot concatenate 'str' and 'instance' objects",)

System Details

    * Date: Thu, 10 Apr 2008 01:06:57 +0000
    * Platform: Linux darcs 2.6.16.49-xen-osl4-ipsec-domU #5 SMP Sat Jun 23
11:34:18 PDT 2007 i686
    * Python: Python 2.4.4 (/usr/bin/python)
    * MoinMoin: Release 1.5.3 (release)
msg4222 (view) Author: simon Date: 2008-04-10.01:14:50
The edit worked in text mode. A quick fix would be to disable moin's gui edit mode.
msg4384 (view) Author: kowey Date: 2008-04-29.18:12:30
Escalating because, if I understand correctly, only David can fix this (?).

Path of least resistance (disabling GUI edit mode, like Simon suggests) sounds nice.
msg4558 (view) Author: kowey Date: 2008-05-07.15:54:54
I'm resolving this because I've managed to edit the wiki with the GUI editor
(just making a test on my home page)

Simon: if you could reproduce the problem, we'd like to know about it.  We have
not done anything in particular to fix this, as far as I know.
History
Date User Action Args
2008-04-10 01:09:47simoncreate
2008-04-10 01:14:51simonsetstatus: unread -> unknown
nosy: tommy, beschmi, kowey, simon
messages: + msg4222
title: editing wiki front page gave an error -> editing wiki in gui mode gives an error
2008-04-12 04:53:20simonsetpriority: urgent -> bug
nosy: tommy, beschmi, kowey, simon
2008-04-29 18:12:31koweysetnosy: + dagit, droundy
messages: + msg4384
2008-05-07 15:54:56koweysetstatus: unknown -> resolved
nosy: droundy, tommy, beschmi, kowey, dagit, simon
messages: + msg4558
2009-08-06 17:58:17adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, thorkilnaur, - droundy
2009-08-06 21:02:15adminsetnosy: - beschmi
2009-08-10 22:19:28adminsetnosy: - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:53adminsetnosy: - dagit
2009-08-25 17:23:45adminsetnosy: + darcs-devel, - simon
2009-08-27 13:58:30adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, dmitry.kurochkin