Edgewall Software
Modify

Opened 18 years ago

Closed 14 years ago

#3314 closed defect (worksforme)

TracEnv + TracEnvParentDir failure

Reported by: coderanger@… Owned by: Noah Kantrowitz
Priority: low Milestone:
Component: web frontend/mod_python Version: devel
Severity: normal Keywords:
Cc: coderanger@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have two <Location>s:

  • <Location /> is a single env at /var/trac/main
  • <Location /projects> is a parent_dir at /var/trac

The problem is that Apache helpfuly merges the options from / into /projects, and in mod_python 3.1, there is no way to unset an option. This results in the TracEnv taking priority. Many other projects use a marker value to get around this ("." or something).

Attachments (0)

Change History (9)

comment:1 by coderanger, 18 years ago

Just tested with mod_python 3.2, and it does work if you do this:

PythonOption TracEnv ""
PythonOption TracEnvParentDir /var/trac

comment:2 by Christian Boos, 18 years ago

Milestone: 0.10
Resolution: worksforme
Status: newclosed

So I propose to close the ticket. Please reopen if the solution proposed by coderanger doesn't work for you.

comment:3 by coderanger, 18 years ago

Resolution: worksforme
Status: closedreopened

I was the one who filed the ticket, and the reason its not enough is that mod_python 3.2 is not available on many distros yet.

comment:4 by Matthew Good, 18 years ago

Instead of <Location /> try <LocationMatch /(?!projects)>. Then the two blocks should be mutually exclusive and the options won't be applied to both.

comment:5 by anonymous, 18 years ago

That works, but is fairly unintuitive. It might be better to have an error shown if both options are set instead of passively ignoring one.

comment:6 by coderanger, 18 years ago

Milestone: 0.11

This shouldn't block 0.10, but I'm adding it to 0.11 so it doesn't get forgoten

comment:7 by Christian Boos, 18 years ago

Severity: majornormal

Patch please ;)

comment:8 by Noah Kantrowitz, 17 years ago

Owner: changed from Christopher Lenz to Noah Kantrowitz
Status: reopenednew

comment:9 by Christian Boos, 14 years ago

Milestone: next-minor-0.12.x
Resolution: worksforme
Status: newclosed

If mod_python has to be used, 3.3.1 is the preferred version, so the solution in comment:1 can be used.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Noah Kantrowitz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.