Description

traceback in log for some searches, see below

Steps to reproduce

In this wiki, we can reproduce it too http://moinmo.in/Forum?action=fullsearch&context=180&value=linkto:"Forum"

Example

As a result we get 502 Bad Gateway, aka 500 Internal Server Error

happens when someone issues:

http://wiki.python-forum.de/Forum?action=fullsearch&context=180&value=linkto:"Forum"

Component selection

Details

ERROR 2014-10-24 18:09:35,368 MoinMoin.wsgiapp:273 An exception has occurred [http://wiki.python-forum.de/Forum?action=fullsearch&context=180&value=linkto:"Forum"].
Traceback (most recent call last):
  File "/MoinMoin/wsgiapp.py", line 256, in __call__
    response = run(context)
  File "/MoinMoin/wsgiapp.py", line 88, in run
    response = dispatch(request, context, action_name)
  File "/MoinMoin/wsgiapp.py", line 136, in dispatch
    response = handle_action(context, pagename, action_name)
  File "/MoinMoin/wsgiapp.py", line 195, in handle_action
    handler(context.page.page_name, context)
  File "/MoinMoin/action/fullsearch.py", line 189, in execute
    titlesearch=titlesearch).parse_query(needle)
  File "/MoinMoin/search/queryparser/__init__.py", line 168, in parse_query
    query = self._analyse_items(items)
  File "/MoinMoin/search/queryparser/__init__.py", line 135, in _analyse_items
    obj = LinkSearch(text, use_re=regex, case=case)
  File "/MoinMoin/search/queryparser/expressions.py", line 462, in __init__
    self._textpattern = '(' + pattern.replace('/', '|') + ')' # used for search in text
AttributeError: 'NoneType' object has no attribute 'replace'

MoinMoin Version

1.9.8

OS and Version

gentoo

Python Version

2.7.6

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Happens also in this wiki

Workaround

Discussion

Guess there are 2 issues here:

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/fullsearch_pattern_shows_internal_server_error (last edited 2018-08-16 17:06:49 by ThomasWaldmann)