cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25879] - directory generator caching bug
Date Sun, 04 Jan 2004 13:33:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25879>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25879

directory generator caching bug





------- Additional Comments From jh@domek.be  2004-01-04 13:33 -------
Testcase :

    <map:match pattern="noaggregation">
    	<map:generate type="directory" src="d:/temp/dirtest"/>
    	<map:serialize type="xml"/>
    </map:match>
    
    <map:match pattern="aggregationlevel1">
	<map:aggregate element="level1">
	  <map:part src="cocoon:/dirtest" strip-root="true"/>
	  <map:part src="cocoon:/dirtest" strip-root="true"/>
	 </map:aggregate>
	 <map:serialize type="xml"/>    	
    </map:match>

    <map:match pattern="aggregationlevel2">
    	<map:aggregate element="level2">
	  <map:part src="cocoon:/aggregationlevel1"/>
	  <map:part src="cocoon:/dirtest" strip-root="true"/>
	 </map:aggregate>
	 <map:serialize type="xml"/>
    </map:match>

    <map:match pattern="aggregationlevel3">
    	<map:aggregate element="level3">
	  <map:part src="cocoon:/aggregationlevel2"/>
	  <map:part src="cocoon:/dirtest" strip-root="true"/>
	 </map:aggregate>
	 <map:serialize type="xml"/>
    </map:match>

Adding/removing/changing files is ok for "noaggregation" and
"aggregationlevel1", the cache gets invalidated properly

Nested aggregations however are not caching properly. I remember sinlge
aggregations not caching properly in 2.0.4, maybe the fix did not take into
account nested aggregations?

I'm currently looking at validatePipeline() in
AbstractCachingProcessingPipeline, but it's a bit of a beast so bear with me ;)

Mime
View raw message