httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41120] New: - Filters corrupt the data sent to the browser if they dont exist
Date Thu, 07 Dec 2006 10:34:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41120>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41120

           Summary: Filters corrupt the data sent to the browser if they
                    dont exist
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ext_filter
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: stimmins@wiley.co.uk


If you define an external filter and the actual filter does not exist, or for
instance is not executable, then the data sent back to the browser becomes
corrupted.

Using a build of httpd 2.2.3 on solaris 9, all content was removed (headers
still present) resulting in a blank page. When processing content served by a
backend tomcat server (using mod_proxy_ajp) the content was (apprently
arbitrarily) missing a certain number of bytes from the begining.

The only error in the error_log file was as follows:

[Wed Dec 06 16:30:27 2006] [error] [client 10.0.3.19] (32)Broken pipe:
ef_unified_filter() failed

Droppping a valid filter onto the file system results in an immediate fix.

Sample configuration/filter:

ExtFilterDefine testfilter cmd="/var/tmp/filter.pl"
<Location />
  SetOutputFilter testfilter
</Location>

And simply make sure the file /var/tmp/filter.pl does not exist. URLs should
stop working. Then put the following in /var/tmp/filter.pl:

#!/usr/local/bin/perl

use strict;

while (<STDIN>)
{
  print;
}

Make it executable. Now URLs should be served correctly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message