Description

If a page name contains illegal re pattern, you can't delete, copy or rename it.

Steps to reproduce

  1. try to delete these pages: ), /Test *

Component selection

Details

This wiki.

--> -->

error

unbalanced parenthesis

If you want to report a bug, please save this page and attach it to your bug report.

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. /srv/moin_tw/moin-test/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_fcgi.Request object>)

    1. 1225 self.page.send_page(msg=msg)
    2. 1226 else:
    3. 1227 handler(self.page.page_name, self)
    4. 1228
    5. 1229 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function execute>
    • self = <MoinMoin.request.request_fcgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u')'
  2. /srv/moin_tw/moin-1.6-main/MoinMoin/action/DeletePage.py in execute (pagename=u')', request=<MoinMoin.request.request_fcgi.Request object>)

    1. 143
    2. 144 def execute(pagename, request):
    3. 145 """ Glue code for actions """
    4. 146 DeletePage(pagename, request).render()
    5. 147
    • global DeletePage = <class MoinMoin.action.DeletePage.DeletePage>
    • pagename = u')'
    • request = <MoinMoin.request.request_fcgi.Request object>
    • ).render undefined
  3. /srv/moin_tw/moin-1.6-main/MoinMoin/action/DeletePage.py in __init__ (self=<MoinMoin.action.DeletePage.DeletePage instance>, pagename=u')', request=<MoinMoin.request.request_fcgi.Request object>)

    1. 25 self.form_trigger = 'delete'
    2. 26 self.form_trigger_label = _('Delete', formatted=False)
    3. 27 filterfn = re.compile(pagename).match
    4. 28 pages = request.rootpage.getPageList(user='', exists=1, filter=filterfn)
    5. 29 self.subpages = []
    • filterfn undefined
    • global re = <module 're' from '/usr/lib/python2.4/re.pyc'>
    • re.compile = <function compile>
    • pagename = u')'
    • ).match undefined
  4. /srv/de.wikiwikiweb.moinmaster/bin16/sre.py in compile (pattern=u')', flags=0)

    1. 178 def compile(pattern, flags=0):
    2. 179 "Compile a regular expression pattern, returning a pattern object."
    3. 180 return _compile(pattern, flags)
    4. 181
    5. 182 def purge():
    • global _compile = <function _compile>
    • pattern = u')'
    • flags = 0
  5. /srv/de.wikiwikiweb.moinmaster/bin16/sre.py in _compile (*key=(u')', 0))

    1. 225 p = sre_compile.compile(pattern, flags)
    2. 226 except error, v:
    3. 227 raise error, v # invalid expression
    4. 228 if len(_cache) >= _MAXCACHE:
    5. 229 _cache.clear()
    • global error = <class sre_constants.error>
    • v = <sre_constants.error instance>

error

unbalanced parenthesis

  • args = ('unbalanced parenthesis',)

System Details

  • Date: Tue, 06 Nov 2007 15:20:59 +0000
  • Platform: Linux web.thinkmo.de 2.6.22.7-thinkmo-1 #1 SMP Fri Sep 28 14:48:51 CEST 2007 x86_64
  • Python: Python 2.4.4 (/usr/bin/python)
  • MoinMoin: Release 1.6.0beta1 ()
traceback.html

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/Can't delete page name with ")" (last edited 2008-03-18 14:45:39 by JohannesBerg)