RT/FastCGI Problem with SimpleSearch

Jeff,

The error:
FastCGI: comm with server “/blah/rt/rt3/bin/mason_handler.fcgi”
aborted:
error parsing headers: malformed header
‘Location=“/rt3/Ticket/Display.html?id=33”’, referer:
https://blech.com/rt3/Search/Listing.html

I’ve found the problem. There is a bug in perl 5.8.0 (21951):

21951 /(^\s]+)/ regexp can incorrectly fail match in utf8 locale

CGI.pm <= 2.91 uses such a regexp to parse the HTTP headers:

next unless my($header,$value) = /([^\s=]+)="?(.+?)"?$/;

This is where this bug comes from.

Solution:

  • Upgrading CGI.pm to 3.04 did it for me.

Patrick

Note: Add will add this to the wiki.

Jesse,

This is a very nasty bug. You may want to consider requiring CGI.pm >=
2.92 for further RT versions to make sure no one else wastes a day
debugging it like I had to…:slight_smile:

Thanks,

Patrick LeBoutillier

BTW: The wiki is an excellent tool and I’m certain it will be very
useful in uniting the GPL RT community.On Tue, 2004-02-03 at 13:57, Patrick LeBoutillier wrote:

Jeff,

The error:
FastCGI: comm with server “/blah/rt/rt3/bin/mason_handler.fcgi”
aborted:
error parsing headers: malformed header
‘Location=“/rt3/Ticket/Display.html?id=33”’, referer:
https://blech.com/rt3/Search/Listing.html

I’ve found the problem. There is a bug in perl 5.8.0 (21951):

21951 /(^\s]+)/ regexp can incorrectly fail match in utf8 locale

CGI.pm <= 2.91 uses such a regexp to parse the HTTP headers:

next unless my($header,$value) = /([^\s=]+)="?(.+?)"?$/;

This is where this bug comes from.

Solution:

  • Upgrading CGI.pm to 3.04 did it for me.

Patrick

Note: Add will add this to the wiki.


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Jesse,

This is a very nasty bug. You may want to consider requiring CGI.pm >=
2.92 for further RT versions to make sure no one else wastes a day
debugging it like I had to…:slight_smile:

Changed. Thanks.