You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/08/01 14:23:31 UTC

[Bug 53634] New: mod_cache returning HTTP 200 for nonexistent resources

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


[Bug 53634] mod_cache returning HTTP 200 for nonexistent resources

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53634

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
Confirmed.

I reproduced it on trunk, with mod_cache_disk.

-- 
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


[Bug 53634] mod_cache returning HTTP 200 for nonexistent resources

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53634

Nicholas Humfrey <nj...@aelius.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |njh@aelius.com

-- 
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