https://issues.apache.org/bugzilla/show_bug.cgi?id=42190
--- Comment #4 from rahul <[EMAIL PROTECTED]> 2008-06-03 23:55:28 PST --- Created an attachment (id=22067) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22067) a single line patch to return rv instead of OK It looks like only this is needed to resolve this. modules/generators/mod_cgi.c ------------------------------ apr_file_close(script_err); - return OK; /* NOT r->status, even if it has changed. + return rv; /* NOT r->status, even if it has changed. } /*============================================================================ I verified using your example |telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /cgi-bin/test.cgi HTTP/1.0 HTTP/1.1 500 Internal Server Error Date: Tue, 03 Jun 2008 14:29:40 GMT Server: Apache/2.3.0-dev (Unix) Content-Length: 535 Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> </body></html> ---------------------------------------------------- A normal cgi script with an error |telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /cgi-bin/printenv HTTP/1.0 HTTP/1.1 500 Internal Server Error Date: Tue, 03 Jun 2008 15:01:32 GMT Server: Apache/2.3.0-dev (Unix) Content-Length: 535 Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> </body></html> ------------------------------------- and a normal working cgi script |telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /cgi-bin/printenv HTTP/1.0 HTTP/1.1 200 OK Date: Tue, 03 Jun 2008 15:01:15 GMT Server: Apache/2.3.0-dev (Unix) Content-Length: 818 Connection: close Content-Type: text/plain; charset=iso-8859-1 DOCUMENT_ROOT="/space/store/apache.26.May/install/htdocs" Please do let me know if this is sufficient. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
