Edgewall Software
Modify

Ticket #2866 (closed defect: worksforme)

Opened 6 years ago

Last modified 4 years ago

TracEnvParentDir breaks when using a particular project name

Reported by: michael@… Owned by: cmlenz
Priority: normal Milestone:
Component: web frontend/mod_python Version: 0.9.4
Severity: normal Keywords: TracEnvParentDir
Cc:
Release Notes:
API Changes:

Description (last modified by cmlenz) (diff)

This report concerns Trac served by Apache with mod_python.
Here is an example for the problem:
Suppose you have configured Apache to serve Trac projects at http://localhost/trac/parentdirtest/projectname using the TracEnvParentDir directive. The config would look like:

        <Location /trac/parentdirtest>
                SetHandler mod_python
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir /srv/trac/parentdirtest
                PythonOption TracUriRoot /trac/parentdirtest
        </Location>

With this example you would access projects at http://localhost/trac/parentdirtest projectname. When using a non-existing project name or none at all, Trac will show you the project listing.

This works fine as long as the directory containing the Trac projects, /srv/trac/parentdirtest/ in this case doesn't contain a project called parentdirtest. If it does, you can still access the other projects, but instead of the project listing at
http://localhost/trac/parentdirtest you will see something like a broken Trac project (see attached screenshot).

Attachments

parentdirtest.png (121.6 KB) - added by michael@… 6 years ago.

Download all attachments as: .zip

Change History

Changed 6 years ago by michael@…

comment:1 Changed 6 years ago by cmlenz

  • Description modified (diff)

(description fixed)

comment:2 Changed 5 years ago by cboos

  • Component changed from general to mod_python frontend
  • Keywords TracEnvParentDir added
  • Milestone set to 1.0
  • Owner changed from jonas to cmlenz

comment:3 Changed 4 years ago by osimons

  • Milestone 1.0 deleted

Tested this with current 0.11b1+ and can't recreate it. So many things have changed since 0.9.4, that unless someone can recreate this issue with a recent/semi-recent version, I'm going to close this ticket as 'worksforme'.

comment:4 Changed 4 years ago by osimons

  • Resolution set to worksforme
  • Status changed from new to closed

Closing as 'worksforme' as I can't re-create the problem using a current version.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.