Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4578 closed defect (worksforme)

location misses TracUriRoot for webadmin plugin

Reported by: jhammel@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

I am running a local instance of trac for testing, v0.11dev. Using webadmin from http://svn.edgewall.com/repos/trac/sandbox/webadmin

The relavent section of my httpd.conf (Apache 2.0) is

<Location /projects/myproject>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv /home/jhammel/tmp/myproject
   PythonOption TracUriRoot /projects/myproject
</Location>

The admin button will successfully take me to http://localhost/projects/myproject/admin

However, when I try to click on the links on the left, they take me to (for instance) http://localhost/admin/general/logging, which of course gives me a not found error.

Attachments (0)

Change History (7)

comment:1 by Emmanuel Blot, 18 years ago

Description: modified (diff)

comment:2 by Emmanuel Blot, 18 years ago

Is the base_url parameter in your trac.ini file defined as expected?

comment:3 by jhammel@…, 18 years ago

Resolution: fixed
Status: newclosed

Yes, that fixes it. I'm not running behind any proxy or what not, but evidentally trac couldn't find the root on its own. Thanks.

comment:4 by Emmanuel Blot, 18 years ago

Resolution: fixed
Status: closedreopened

I'm not sure whether the comment is really up to date. Need to check, I thought is was actually a mandatory parameter with the latest Trac release.

comment:5 by Emmanuel Blot, 18 years ago

Resolution: worksforme
Status: reopenedclosed

(no code change → worksforme)

comment:6 by anonymous, 18 years ago

Resolution: worksforme
Status: closedreopened

Our trac is accessible from two different URLs, http://internal/trac (from inside the firewall) and http://external.companyname.com/trac (from outside).

I can't set base_url to a fully qualified URL because of this. Can I get webadmin to run properly anyway? I couldn't the last time I tried a few days ago.

I think some other folks have a similar problem with http vs. https URLs for internal vs. external. Hope you don't mind my reopening this to make sure this issue isn't lost. Can base_url be just the "path" part of a URL, omitting the scheme://host:port part?

comment:7 by Christian Boos, 18 years ago

Resolution: worksforme
Status: reopenedclosed

The URLs in the webadmin should be no different from the URLs generated by other Trac modules. It might be that some old version of the plugin didn't get this right, but I don't think it can still be the case.

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.