Edgewall Software

Opened 14 months ago

Last modified 14 months ago

#13575 closed defect

Blank page in CGI mode — at Initial Version

Reported by: ebourg@… Owned by:
Priority: normal Milestone: 1.6
Component: web frontend Version: 1.5.4
Severity: major Keywords: cgi
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I've upgraded a Trac instance deployed on Apache in CGI mode. The database upgrade went well, testing in standalone mode looked ok, but with Apache I just got a blank page, no HTTP error, no stacktrace, and nothing in the Apache error.log in debug mode.

I tracked down the issue to cgi_frontend.py where an exception occurs (but isn't propagated for some reason) when calling sys.stdout.write(data):

write() argument must be str, not bytes

Converting the bytes to string fixed the issue:

sys.stdout.write(data.decode('UTF-8'))

Change History (0)

Note: See TracTickets for help on using tickets.