Modify

Opened 9 years ago

Last modified 9 years ago

#12684 new defect

error: unexpected end of regular expression

Reported by: anonymous Owned by:
Priority: normal Component: SearchAttachmentsPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

How to Reproduce

While doing a GET operation on /search, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'attachments': u'on',
 'changeset': u'on',
 'milestone': u'on',
 'noquickjump': u'1',
 'q': u'[[movie',
 'ticket': u'on',
 'wiki': u'on'}

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

System Information

Trac 1.0.2
Babel 1.3
Genshi 0.7 (without speedups)
pysqlite 2.4.1
Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]
pytz 2010h
setuptools 0.6
SQLite 3.6.20
Subversion 1.8.3 (r1516576)
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

docrender 0.2
NavAdd 0.3
SecureSession 0.10dev
SimpleMultiProject 0.0.4dev
TracAccountManager 0.4.4
TracAutocompleteUsersPlugin 0.4.3dev
TracCsvPlugin 0.0.1
TracCustomFieldAdmin 0.2.10
TracDateField 3.0.0dev
TracMovieMacro 0.3
TracPermRedirect 3.0
TracSearchAttachmentsPlugin 1.0
TracWorkflowAdmin 0.12.0.2
TracWysiwyg 0.12.0.5
username N/A

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/web/main.py", line 512, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/web/main.py", line 221, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/search/web_ui.py", line 105, in process_request
    results = self._do_search(req, terms, filters)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.2-py2.6.egg/trac/search/web_ui.py", line 213, in _do_search
    or [])
  File "build/bdist.linux-x86_64/egg/searchattachments/searchattachments.py", line 165, in get_search_results
    keywords)
  File "build/bdist.linux-x86_64/egg/searchattachments/searchattachments.py", line 183, in _make_excerpt
    m = re.compile(regexp, re.IGNORECASE).search(content)
  File "/usr/lib64/python2.6/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/usr/lib64/python2.6/re.py", line 245, in _compile
    raise error, v # invalid expression
error: unexpected end of regular expression

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Ryan J Ollos

Similar issue:

How to Reproduce

While doing a GET operation on /search, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{u'attachments': u'on',
 u'changeset': u'on',
 u'milestone': u'on',
 u'noquickjump': u'1',
 u'q': u'username(',
 u'ticket': u'on',
 u'wiki': u'on'}

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

System Information

Trac 1.0.10
Babel 2.2.0
Genshi 0.7 (with speedups)
MySQL server: "5.1.73-log", client: "5.1.73", thread-safe: 1
MySQLdb 1.2.3c1
Pygments 2.1.3
Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]
pytz 2016.3
setuptools 20.3.1
Subversion 1.8.3 (r1516576)
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

docrender 0.2
NavAdd 0.3
SecureSession 0.10.dev0
SimpleMultiProject 0.0.4.dev0
TracAccountManager 0.4.4
TracAutocompleteUsersPlugin 0.4.3.dev0
TracCsvPlugin 0.0.1
TracCustomFieldAdmin 0.2.10
TracDateField 3.0.0.dev0
TracMovieMacro 0.3
TracPermRedirect 3.0
TracSearchAttachmentsPlugin 1.0
TracWorkflowAdmin 0.12.0.2
TracWysiwyg 0.12.0.5
username N/A

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/main.py", line 554, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/main.py", line 247, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/search/web_ui.py", line 106, in process_request
    results = self._do_search(req, terms, filters)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/search/web_ui.py", line 214, in _do_search
    or [])
  File "build/bdist.linux-x86_64/egg/searchattachments/searchattachments.py", line 118, in get_search_results
    raise Exception(output)
Exception: # SWISH format: 2.4.7
# Search words: username(
# Removed stopwords: 
err: Syntax error in query (missing end quote or unbalanced parenthesis?)
.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.