Bug 52879

Summary: mod_proxy_fcgi wrong behavior with 304
Product: Apache httpd-2 Reporter: Alexander Strange <astrange>
Component: mod_proxy_fcgiAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: REOPENED ---    
Severity: normal Keywords: FixedInTrunk
Priority: P2    
Version: 2.4.4   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Alexander Strange 2012-03-11 06:26:16 UTC
I have a PHP script (run as fastcgi through php-fpm and mod_proxy_fcgi) which returns a Last-Modified header with no Status header.

At line 746:

ap_scan_script_header_err_brigade_ex returned HTTP_NOT_MODIFIED. This caused the 'status != OK' check to fail and it returned 200 with an empty body.

Seems related to bug 38070.
Comment 1 Stefan Fritsch 2012-04-21 17:52:35 UTC
Can you please check if this patch fixes the problem?

Comment 2 Alexander Strange 2012-04-27 04:27:30 UTC
2.4.2 + that patch appears to work.
Comment 3 Rainer Jung 2012-08-21 16:36:56 UTC
Applied to 2.4.x in r1331416.
Released with 2.4.3.
Comment 4 BC dev team 2013-03-26 03:11:59 UTC
We have been chasing an issue with Apache 2.4.2 and found this bug report. We upgraded to 2.4.4. This change appears to partially fixed the issue in that upon a 304 response apache now returns content. However we are still seeing an error message logged in the following format - "[proxy_fcgi:error] [pid 1226:tid 139673091413760] [client] AH01070: Error parsing script headers".

Upon inspection of the code we think we can see that this message will be reported when ANYTHING but a 200 OK is generated. Ideally we dont want to see the error in our apache logs. Can someone investigate?