You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/06/10 18:26:19 UTC

DO NOT REPLY [Bug 29506] New: - Faulty caching in directory generator

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=29506>.
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=29506

Faulty caching in directory generator

           Summary: Faulty caching in directory generator
           Product: Cocoon 2
           Version: 2.1.5
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: tobias@lentus.se


The cache key for the directory generator do not contain the context path nor 
the absolute path for the directory to list. This means that if you try to 
list the directory named foo in the context /bar you will get what you want. 
But if you list the directory named foo in the context /bar/gazonk you will 
get the same result.

The problem is located here: 
org/apache/cocoon/generation/DirectoryGenerator.java around line 148. 

My suggested solution is to add the current context path to the cache key.

If one disable caching one will get rid of the problem but I want to use the 
cache!