Modify

Opened 10 years ago

Last modified 7 months ago

#11911 new defect

AttributeError: 'NoneType' object has no attribute 'get_node'

Reported by: Jared Owned by: Alex Smith
Priority: normal Component: RepoSearchPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

How to Reproduce

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

Is this a python version issue?

Request parameters:

{'noquickjump': u'1', 'q': u'source', 'repo': u'on'}

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36

System Information

Trac 1.0
Trac 1.0
Babel 0.9.6
Genshi 0.6 (without speedups)
GIT 1.7.1
mod_wsgi 3.2 (WSGIProcessGroup trac-dev WSGIApplicationGroup trac-dev.agraquest.int|)
pysqlite 2.4.1
Python 2.6.6 (r266:84292, Apr 11 2011, 15:50:32)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
Python 2.6.6 (r266:84292, Apr 11 2011, 15:50:32)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
pytz 2010h
pytz 2010h
setuptools 0.6c11
setuptools 0.6c11
SQLite 3.6.20
Subversion 1.6.15 (r1038135)
jQuery 1.7.2

Enabled Plugins

AutocompleteUsers 0.4.2dev
BlackMagicTicketTweaks 0.12r1
BreadCrumbsNav 0.2
ComponentDependencyPlugin 0.1
ContextChrome 0.3
ReadonlySignedTickets N/A
ScreenshotPaste 0.1.1
TicketSidebarProvider 0.0
TicketValidator 0.2dev
trac-WorkflowNotificationPlugin 0.5
TracAccountManager 0.4.3
TracAnnouncer 1.0dev
TracAttachmentNotifyPlugin 1.0.1
TracCustomFieldAdmin 0.2.8-r12166
TracDateField 2.0.0dev-r12118
TracDragDrop 0.12.0.11
TracHoursPlugin 0.6.0dev
TracHtmlNotificationPlugin 0.12.0.1
TracReportManager 0.1
tracreposearch 0.2
TracSubTicketsPlugin 0.2.0.dev-20130908

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0-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-py2.6.egg/trac/search/web_ui.py", line 214, in _do_search
    or [])
  File "build/bdist.linux-x86_64/egg/tracreposearch/search.py", line 79, in get_search_results
    self.indexer = Indexer(self.env)
  File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 134, in __init__
    self.reindex()
  File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 97, in wrap
    return f(*args, **kw)
  File "build/bdist.linux-x86_64/egg/tracreposearch/indexer.py", line 242, in reindex
    for node in TracRepoSearchPlugin(self.env).walk_repo(self.repo):
  File "build/bdist.linux-x86_64/egg/tracreposearch/search.py", line 52, in walk_repo
    for node in do_walk('/'):
  File "build/bdist.linux-x86_64/egg/tracreposearch/search.py", line 41, in do_walk
    node = repo.get_node(path)
AttributeError: 'NoneType' object has no attribute 'get_node'

Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to anonymous
Status: newassigned

You should checkout MultiRepoSearchPlugin. RepoSearchPlugin hasn't been maintained in some time.

comment:2 in reply to:  1 Changed 10 years ago by Jared

Replying to rjollos:

You should checkout MultiRepoSearchPlugin. RepoSearchPlugin hasn't been maintained in some time.

Got it, MultiRepoSearchPlugin is working. Thanks.

comment:3 Changed 10 years ago by Ryan J Ollos

Status: assignednew

comment:4 Changed 7 months ago by Ryan J Ollos

Owner: changed from anonymous to Alex Smith
Status: newassigned

comment:5 Changed 7 months ago by Ryan J Ollos

Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Alex Smith.

Add Comment


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

 
Note: See TracTickets for help on using tickets.