Ticket #1209 (new defect)

Opened 4 years ago

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

Reported by: anonymous123 Owned by: dgollub
Priority: normal Milestone:
Component: Webpage Version: 0.39
Severity: normal Keywords:
Cc:

Description

How to Reproduce

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

(please provide additional details here) How to reproduce (from command line):

$ wget 'http://www.opensync.org/search?q=wifi' --user-agent "" -S -O /dev/null --2010-02-15 23:00:52-- http://www.opensync.org/search?q=wifi Resolving www.opensync.org... 213.239.217.124 Connecting to www.opensync.org|213.239.217.124|:80... connected. HTTP request sent, awaiting response...

HTTP/1.1 500 Internal Server Error Date: Tue, 16 Feb 2010 05:00:54 GMT Server: Apache/2.2.14 (Linux/SUSE) Cache-control: must-revalidate Expires: Fri, 01 Jan 1999 00:00:00 GMT Content-Length: 6231 Set-Cookie: trac_form_token=21a8c72c35e43ae47c666fb0; Path=/ Set-Cookie: trac_session=65a934cbb1087995d5e40490; expires=Mon, 17-May-2010 05:00:54 GMT; Path=/ Connection: close Content-Type: text/html;charset=utf-8

2010-02-15 23:00:53 ERROR 500: Internal Server Error.

Request parameters:

{'q': u'wifi'}

System Information

Trac 0.11.6
Python 2.6 (r26:66714, Dec 3 2008, 10:55:18)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]]
setuptools 0.6c11
SQLite 3.6.4
pysqlite 2.4.1
Genshi 0.5.1
mod_python 3.3.1
Pygments 1.1.1
Subversion 1.6.3 (r38063)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib64/python2.6/site-packages/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib64/python2.6/site-packages/trac/search/web_ui.py", line 107, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File "build/bdist.linux-x86_64/egg/doxygentrac/doxygentrac.py", line 212, in get_search_results
    path = os.path.join(path, self.html_output)
  File "/usr/lib64/python2.6/posixpath.py", line 65, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Note: See TracTickets for help on using tickets.