httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r952152 - in /httpd/test/framework/trunk/t: apache/pr17629.t conf/extra.conf.in
Date Mon, 07 Jun 2010 09:00:27 GMT
Author: jorton
Date: Mon Jun  7 09:00:26 2010
New Revision: 952152

URL: http://svn.apache.org/viewvc?rev=952152&view=rev
Log:
- more sophisticated test for PR 17629 which avoids the regression
  in the naive solution of simply retaining the entire filter
  chain across an internal redirect applied to a subrequest

Modified:
    httpd/test/framework/trunk/t/apache/pr17629.t
    httpd/test/framework/trunk/t/conf/extra.conf.in

Modified: httpd/test/framework/trunk/t/apache/pr17629.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/pr17629.t?rev=952152&r1=952151&r2=952152&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/pr17629.t (original)
+++ httpd/test/framework/trunk/t/apache/pr17629.t Mon Jun  7 09:00:26 2010
@@ -5,7 +5,7 @@ use Apache::Test;
 use Apache::TestUtil;
 use Apache::TestRequest;
 
-plan tests => 2, need [qw(cgi include deflate)];
+plan tests => 2, need [qw(cgi include deflate case_filter)];
 my $inflator = "/modules/deflate/echo_post";
 
 my @deflate_headers;
@@ -14,6 +14,16 @@ push @deflate_headers, "Accept-Encoding"
 my @inflate_headers;
 push @inflate_headers, "Content-Encoding" => "gzip";
 
+# The SSI script has the DEFLATE filter applied.
+# The SSI includes a CGI script.
+# The CGI script has the CASE filter applied.
+# The CGI script returns a redirect to /foobar.html.
+# The flat file does not have the DEFLATE filter applied.
+
+# The test is that the internal redirect when applied to the
+# subrequest must retain the DEFLATE filter in the filter chain, but
+# must lose the CASE filter.
+
 my $uri = "/modules/deflate/ssi/ssi.shtml";
 
 my $content = GET_BODY($uri);

Modified: httpd/test/framework/trunk/t/conf/extra.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/extra.conf.in?rev=952152&r1=952151&r2=952152&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/extra.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/extra.conf.in Mon Jun  7 09:00:26 2010
@@ -481,6 +481,14 @@ LimitRequestFields    32
     </IfModule>
 </IfDefine>
 
+### pr17629.t
+<IfModule mod_case_filter.c>
+    <Location /modules/cgi/redirect.pl>
+        SetOutputFilter CASEFILTER
+    </Location> 
+</IfModule>
+
+
 ##
 ## Test config for security issues
 ##



Mime
View raw message