DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31128>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31128 CacheDisable doesn't work Summary: CacheDisable doesn't work Product: Apache httpd-2.0 Version: 2.0-HEAD Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: mod_cache AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When any CacheDisable directive is used, no content whatsoever is cached by mod_cache. Bug found in 2.0.51-rc2, present in 2.0-HEAD, not present in 2.0.50. Found on Solaris 8/SPARC/gcc, verified on Fedora Core 2/Athlon/gcc. Steps to reproduce: - Use 2.0.51-rc2, including mod_cache, all modules built static, no third party modules, built from pristine sources from httpd.apache.org/dev/dist/ - Use configuration directives: CacheEnable disk / CacheRoot /cache - Content will be cached normally - Clean out cache and add directive: CacheDisable /foo/ - No content at all is cached anymore, including content not under /foo Some debugging shows that the urllen field of struct cache_disable is always 0, causing the CacheDisable test to always succeed, causing mod_cache to always decline to cache (this all in cache_util.c). Strangely enough, the urllen does appear to be set correctly when the config file is parsed (mod_cache.c). Removing the urllen field from structs cache_enable and cache_disable, and replacing references to the field with strlen() calls fixes the problem. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
