Modify ↓
#660 closed defect (fixed)
The plugin does not work with CGI
Reported by: | Owned by: | Russ Tyndall | |
---|---|---|---|
Priority: | normal | Component: | TimingAndEstimationPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
The plugin does not work with CGI as it prints out info before headers and makes apache choke:
$ REQUEST_METHOD=GET SERVER_NAME=intranet.gmta.info SERVER_PORT=80 TRAC_ENV=/var/trac/proj /usr/share/trac/cgi-bin/trac.cgi | head Timing and Estimation checking for upgrade Checking Database Checking fields Checking reports Checking user manual checking for user manual update Status: 403 Forbidden Cache-control: must-revalidate Expires: Fri, 01 Jan 1999 00:00:00 GMT Content-Type: text/html;charset=utf-8
Disabling the print statements in api.py, seems to fix the problem. I have rated this problem as 'blocker' as it makes the plugin unusable on systems running as CGI.
Please do contact me, if I can be of any assistance.
Thanks, Christian
Attachments (0)
Note: See
TracTickets for help on using
tickets.
I have removed the offending print statements that get called when checking for upgrades.
This should fix the CGI problems. I was unaware that stdout was bound to http out when running though cgi.
Hopefully svn head has these bugs fixed. I also fixed a few markup bugs in the template.
Thanks for the good bug report, Russ