Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#837 closed defect (worksforme)

ModPython breaks with trailing slash in PythonOption TracUriRoot

Reported by: jason.morgan@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: web frontend/mod_python Version: 0.7.1
Severity: major Keywords: apache
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

ModPython breaks with trailing slash in PythonOption TracUriRoot="xyz". On Apache Windows platform

Note examples don't use quotes round PythonOption parameters, though omitting them breaks Apache.

The parsing in the trac.ModPythonHandler copies the quote (") into the directory path, thus breaking the web server.

printing the path in send_project_index() proves this.

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 20 years ago

Description: modified (diff)

comment:2 by Christopher Lenz, 20 years ago

Keywords: mod_python removed
Resolution: worksforme
Status: newclosed

I can't reproduce this problem with Apache HTTP 2.0.52 and ModPython 3.1.3 on Mac OS X.

Actually, the mod_python handler explicitly strips trailing slashes as to avoid such problems.

Note that the proper syntax for setting the option would be:

    PythonOption TracUriRoot "xyz"

I'm closing this as "worksforme". If you reopen, please provide more details. What's the exact syntax of your configuration? How do the links on the project index look like? What's your setup?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.