Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#660 closed defect (fixed)

The plugin does not work with CGI

Reported by: christian@… 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)

Change History (2)

comment:1 Changed 18 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

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

comment:2 Changed 18 years ago by Russ Tyndall

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.