httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r149449 - httpd/test/trunk/perl-framework/t/modules/proxy.t
Date Tue, 01 Feb 2005 21:10:04 GMT
Author: jorton
Date: Tue Feb  1 13:10:03 2005
New Revision: 149449

URL: http://svn.apache.org/viewcvs?view=rev&rev=149449
Log:
Add test for PR 15207, proxy abs_path decoding issue.

Modified:
    httpd/test/trunk/perl-framework/t/modules/proxy.t

Modified: httpd/test/trunk/perl-framework/t/modules/proxy.t
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/modules/proxy.t?view=diff&r1=149448&r2=149449
==============================================================================
--- httpd/test/trunk/perl-framework/t/modules/proxy.t (original)
+++ httpd/test/trunk/perl-framework/t/modules/proxy.t Tue Feb  1 13:10:03 2005
@@ -6,7 +6,7 @@
 use Apache::TestUtil;
 use Apache::TestConfig ();
 
-plan tests => 10, need_module 'proxy';
+plan tests => 11, need_module 'proxy';
 
 Apache::TestRequest::module("proxy_http_reverse");
 Apache::TestRequest::user_agent(requests_redirectable => 0);
@@ -33,6 +33,14 @@
     }
 } else {
     skip "skipping tests without CGI module" foreach (1..6);
+}
+
+if (have_min_apache_version('2.1.0')) {
+    # trigger the "proxy decodes abs_path issue"
+    $r = GET("/reverse/nonesuch/file%25");
+    ok t_cmp($r->code, 404, "reverse proxy URI decoding issue, PR 15207");
+} else {
+    skip "skipping PR 15207 test with httpd < 2.1.0";
 }
 
 if (have_module('alias')) {



Mime
View raw message