cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Knecht (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2245) Not unique caching key for different blocks
Date Fri, 03 Oct 2008 13:52:44 GMT
Not unique caching key for different blocks
-------------------------------------------

                 Key: COCOON-2245
                 URL: https://issues.apache.org/jira/browse/COCOON-2245
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core
    Affects Versions: 2.2, 2.2-dev (Current SVN)
            Reporter: Felix Knecht


ExpiresCachingProcessingPipeline doesn't generates unique default caching key for different
blocks.

When having 2 blocks running, each containing an image '.../images/foo.png' the key for the
cache is 'images/foo.png'. This is wrong as it doesn't respects that this are images of different
blocks.
The default cache key is generated in core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/components/pipeline/impl/ExpiresCachingProcessingPipeline.java:223:
key = environment.getURIPrefix()+environment.getURI();

So the generation of the key is correct, but environment.getURIPrefix() is empty. I'm sure
this is the part making the difference.
I can't find where the URIPrefix is set (supposing it could be in core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpEnvironment.java)
...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message