Edgewall Software

Opened 9 years ago

Last modified 9 years ago

#11925 closed defect

Traceback on About page when htdocs directory does not exist — at Initial Version

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.4
Component: general Version:
Severity: normal Keywords: site-customization
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is a regression from #11548. The following traceback is seen:

File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.3-py2.6.egg/trac/web/main.py", line 513, in _dispatch_request
  dispatcher.dispatch(req)
File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.3-py2.6.egg/trac/web/main.py", line 222, in dispatch
  resp = chosen_handler.process_request(req)
File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.3-py2.6.egg/trac/about.py", line 75, in process_request
  Chrome(self.env).get_interface_customization_files()
File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.3-py2.6.egg/trac/web/chrome.py", line 1132, in get_interface_customization_files
  site_htdocs = sorted(os.listdir(self.env.get_htdocs_dir()))

I need to look more closely at the code, but it appears to result when [trac] htdocs_location is empty or not define. On trac-hacks.org we have:

[trac]
htdocs_location = 

It appears this is because the webserver is configured to serve these files:

Alias   /chrome/common  /srv/trac-hacks.org/www/htdocs/common
Alias   /chrome/site    /srv/trac-hacks.org/www/htdocs/site

Please correct me if I'm assuming wrong.

The workaround is to simply create the missing htdocs directory.

Change History (0)

Note: See TracTickets for help on using tickets.