]> granicus.if.org Git - apache/commitdiff
Merge r1619835, r1620461 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 26 Sep 2014 10:57:50 +0000 (10:57 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 26 Sep 2014 10:57:50 +0000 (10:57 +0000)
don't let handlers start with r->status = 304 during a failed revalidation

PR56881

Fix typo in comment.

Submitted by: covener, rjung
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1627745 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/cache/mod_cache.c

diff --git a/CHANGES b/CHANGES
index bbb38da2ad6fb4ee858185af4081ad92ed22f9db..9970e0256bfb41e297b6a682fb036ecc94a6d016 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.11
 
+  *) mod_cache: Avoid sending 304 responses during failed revalidations
+     PR56881. [Eric Covener]
+
   *) mod_status: Honor client IP address using mod_remoteip. PR 55886.
      [Jim Jagielski]
 
diff --git a/STATUS b/STATUS
index 939c179f9eb057697cd68b019ce095dee0e40002..1b22beb3e7f9f016761b1218fc145f128f8e4e5b 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -102,13 +102,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-   * mod_cache: Avoid sending a 304 to an unconditional request during a 
-     revalidation. PR56881
-     trunk patch:  http://svn.apache.org/r1619835 
-                   http://svn.apache.org/r1620461
-     2.4.x patch: trunk works
-     +1: covener, jim, ylavic
    * core: Add missing va_end spotted by cppcheck
      various: Silent some cppcheck warnings
      trunk patch: http://svn.apache.org/r1619297 
index cd839ed7c53561153ca0c1155a291039f327e933..1a47f021b85094257d3160dc5fd756cec34df415 100644 (file)
@@ -1201,6 +1201,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
         apr_table_unset(r->headers_in, "If-Range");
         apr_table_unset(r->headers_in, "If-Unmodified-Since");
 
+        /* Currently HTTP_NOT_MODIFIED, and after the redirect, handlers won't think to set status to HTTP_OK */
+        r->status = HTTP_OK; 
         ap_internal_redirect(r->unparsed_uri, r);
 
         return APR_SUCCESS;