View Issue Details

IDProjectCategoryView StatusLast Update
0009916mantisbtinstallationpublic2017-01-31 04:05
Reporterseykron Assigned Toatrol  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Platformx86_64OSLinuxOS VersionDebian Etch 4
Product Version1.1.5 
Summary0009916: PHP-CGI with FastCGI crashes when Mantis puts an additional Status Header.
Description

When using PHP under Apache (this seems to occurs in all version since is not a problem from the server) with mod_fastcgi, server triggers a 500 error page. The next outputs could be found in the error log:

[error] [client xxx.xxx.xxx] FastCGI: comm with server "/path/to/cgi/php5" aborted: error parsing headers: duplicate header 'Status'

The bug could be temporarily solved by comment the next line in the core.php file:

if ( OFF == $g_use_iis ) {
// header( 'Status: 302' );
}

It just avoid to append a new Status header to the request, and so FastCGI does not became broken.

Steps To Reproduce

Uncompress Mantis in the document root directory, and try to open the index (installation process).

Tagsinstall

Activities

grangeway

grangeway

2008-11-29 20:17

reporter   ~0020138

I've seen this myself I think - do you know if there's a way to detect if we're running under fastcgi? (I assume the issue is fastcgi already sends a status header??)

Paul

seykron

seykron

2008-11-29 21:08

reporter   ~0020139

Well, next to some tests, I found a fix but it not seems to be the best. See below:

$serverSoft = $_SERVER["SERVER_SOFTWARE"];
$isFcgi = strpos( $serverSoft, "mod_fastcgi" );

if ( (OFF == $g_use_iis) && ($isFcgi === false) ) {
header( 'Status: 302' );
}

It checks the SERVER_SOFTWARE superglobal and next verify if mod_fastcgi is there, but no ones could to assure that everytime this will be accesible... Anyway, it just work.

Regards.

schoenfeld

schoenfeld

2008-12-01 03:46

reporter   ~0020173

Hi,

did you report a bug against fastcgi, too?
Because under no circumstances a server should crash, even when a site sets duplicate headers. Its still a bug in mantis, though. If you didn't, please do so.

Regards,
Patrick

atrol

atrol

2017-01-18 13:28

developer   ~0055211

We are resolving this issue as "no change required", because it was reported against an old version of MantisBT which is no longer supported.

We recommend that you upgrade to the latest stable version [1]; if after doing so the problem still exists, do not hesitate to reopen the issue.

[1] http://www.mantisbt.org/download.php