#11925 closed defect (fixed)
Traceback on About page when htdocs directory does not exist
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.4 |
Component: | general | Version: | |
Severity: | normal | Keywords: | site-customization |
Cc: | Branch: | ||
Release Notes: |
Don't raise an exception when generating list of static resources and templates for About page if the environment |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
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 On trac-hacks.org we have:
[trac]
htdocs_location
is empty or not defined.
[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.
Attachments (0)
Change History (5)
comment:1 by , 10 years ago
Status: | new → assigned |
---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:4 by , 10 years ago
Owner: | changed from | to
---|
comment:5 by , 9 years ago
Description: | modified (diff) |
---|
Replying to rjollos:
Not a defect.
Environment.get_htdocs_dir()
is to retrieve$ENV/htdocs
directory as site htdocs. The directory is created when environment is created at the same time. It generally isn't deleted.However, we could make it robust.
trac/web/chrome.py