Description

Searching with a negative subexpression breaks the wiki, with the NameError "global name 'restult' is not defined"

Steps to reproduce

  1. Full text search for "CategoryDrakkar - (CategoryField CategoryTable)"

Example

[[FullSearch(CategoryDrakkar - (CategoryField CategoryTable))]]

Details

This Wiki.

Workaround

The bug is caused by a typo in MoinMoin/search.py, method QueryParser._single_term(). The row

if match.group("NEG"): restult.negate()

should read

if match.group("NEG"): result.negate()

Discussion

Maybe we should do more unit tests to catch such issues.

Plan


CategoryMoinMoinBugFixed CategoryRelease1.3.5

MoinMoin: MoinMoinBugs/NegativeSearchBroken (last edited 2007-10-29 19:19:08 by localhost)