Description

Using regex:term syntax in the searchbox or FullSearch macro backtrace:

 /Volumes/Home/nir/Projects/moin/fix/MoinMoin/search.py in highlight_re(self=<MoinMoin.search.TextSearch instance at 0x4ac918>)

  205 
  206     def highlight_re(self):
  207         return u"(%s)" % self.pattern
  208 
  209     def search(self, page):


self = <MoinMoin.search.TextSearch instance at 0x4ac918>, self.pattern undefined

AttributeError: TextSearch instance has no attribute 'pattern' 
      __doc__ = 'Attribute not found.' 
      __getitem__ = <bound method AttributeError.__getitem__ of <exceptions.AttributeError instance at 0x26b828>> 
      __init__ = <bound method AttributeError.__init__ of <exceptions.AttributeError instance at 0x26b828>>
      __module__ = 'exceptions' 
      __str__ = <bound method AttributeError.__str__ of <exceptions.AttributeError instance at 0x26b828>>
      args = ("TextSearch instance has no attribute 'pattern'",)

Example

Details

This Wiki.

Workaround

Discussion

No search term should cause backtrace. We must use proper error checking on user input.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/FullSearchCrash (last edited 2007-10-29 19:10:51 by localhost)