httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53634] New: mod_cache returning HTTP 200 for nonexistent resources
Date Wed, 01 Aug 2012 12:23:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53634

          Priority: P2
            Bug ID: 53634
          Assignee: bugs@httpd.apache.org
           Summary: mod_cache returning HTTP 200 for nonexistent resources
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: glen.birnie@bbc.co.uk
          Hardware: Other
            Status: NEW
           Version: 2.2.22
         Component: mod_cache
           Product: Apache httpd-2

IF a 404 ErrorDocument is configured within a URL range where mod_cache is
enabled
AND the error document was previously requested (and cached by mod_disk_cache)
THEN all subsequent responses to nonexistent resources return HTTP 200 instead
of the expected HTTP 404 response.

Example configuration:

###

LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so

CacheRoot /cache-root
CacheDirLevels 3
CacheDirLength 1
CacheMinFileSize 0
CacheMaxFileSize 1000000

CacheEnable disk /

ErrorDocument 404 /error.jpg

###

Assumptions:

/cache-root exists and is writable by httpd, initially empty contents.
/error.jpg exists within the document root directory.

To reproduce:

request "/error.jpg"
request any nonexistent resource, say, "/nonexistent".

NB Bug 49996 describes a very similar issue involving mod_proxy.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message