Opened 6 years ago

Last modified 3 years ago

#4437 new defect

Multiproject report does not show projects

Reported by: anonymous Owned by: rjollos
Priority: normal Component: TracHoursPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I inbstalled trac in multiproject configuration, using c:/trac as root dir and hanging several project below it. I also installed Trac Hours as time tracker, and after some minor issues everything went ok. The only report not working is multiproject report, the project list appears empty and hence none is shown as time consumed. I checked environment variables and works fine. My fast exploration into code gave me no clue aboou what it is going on, except that apparenty track hourse uses "get project from url" method or similar. By the way I attach the piece of apache configuration for mod_python and trac environment:

<Location />
   AuthType Basic
   AuthName "trac"
   AuthUserFile /trac/trac.htpasswd
   Require valid-user
   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend 
   PythonOption TracEnvParentDir /trac
   PythonOption TracUriRoot /

<Location /css>
   SetHandler None
   Options FollowSymLinks
   Order allow,deny   
   Allow from All

Alias /css "C:/Trac_Templates/css"

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by anonymous

I'm seeing the same problem, but I think I know what's happening - although I don't know how to fix it. As you probably know, the plugin uses rss feeds to get information from other projects. I can see the rss requests getting http 401 errors when I attempt to view the multiproject page. I am also using basic authentication with an htpasswd file. I wonder if this has something to do with it?

Funny thing is I can access the rss feeds manually without difficulty. I'm not familiar with the pluggin, so that's all I can see right now.

comment:2 follow-up: Changed 5 years ago by anonymous

A workaround for this is to edit your apache configuration:

AuthType Basic
AuthName "Trac"
AuthUserFile /var/trac/.htpasswd
Require valid-user              
Allow from            
Satisfy Any 

Apache will then let through traffic from localhost without requiring a password.

comment:3 in reply to: ↑ 2 Changed 5 years ago by anonymous

Replying to anonymous:

 Order deny,allow
 Deny from all   
 AuthType Basic
 AuthName "Trac"
 AuthUserFile /var/trac/.htpasswd
 Require valid-user              
 Allow from <external ip of the server>            
 Satisfy Any 


comment:4 Changed 4 years ago by rjollos

  • Owner changed from k0s to rjollos

Reassigning ticket to new maintainer.

comment:5 Changed 3 years ago by anonymous

Debian Squeeze+Apache Trac 0.11.7 TracHoursPlugin 0.5.2-r10437 Https URL and Basic Auth

Used the fixed above, still a blank page, 403 Error?

hidden:443 188.hidden.4 - - [09/Aug/2012:09:23:02 +0200] "GET /hidden1/hours?from_month=8&format=rss&from_day=2&to_year=2012&to_month=8&from_year=2012&to_day=9 HTTP/1.1" 403 3255
hidden:443 188.hidden.4 - - [09/Aug/2012:09:23:02 +0200] "GET /hidden2/hours?from_month=8&format=rss&from_day=2&to_year=2012&to_month=8&from_year=2012&to_day=9 HTTP/1.1" 403 3255
hidden:443 188.hidden.4 - - [09/Aug/2012:09:23:02 +0200] "GET /hidden3/hours?from_month=8&format=rss&from_day=2&to_year=2012&to_month=8&from_year=2012&to_day=9 HTTP/1.1" 403 3255
hidden:443 95.hidden.119 - ls [09/Aug/2012:09:23:02 +0200] "GET /hidden1/hours/multiproject HTTP/1.1" 200 3646 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.57 Safari/537.1"

No Problems with calling manual in browser (already logged in): https://hidden/hidden2/hours?from_month=8&format=rss&from_day=2&to_year=2012&to_month=8&from_year=2012&to_day=9

Add Comment

Modify Ticket

as new The owner will remain rjollos.

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

Note: See TracTickets for help on using tickets.