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.