Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 3324 invoked by uid 500); 22 Aug 2002 17:53:33 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 3313 invoked from network); 22 Aug 2002 17:53:32 -0000 Message-ID: <3D652507.7020608@verizon.net> Date: Thu, 22 Aug 2002 13:53:11 -0400 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: BUG: SiteMapSource lastModificationDate References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Amir Rosen wrote: >Hi, > >lastModificationDate for SiteMapSource is computed as hashing of the >string representations (toString()) of the event pipeline cache key >and validity. (I'm talking 2.0.3-branch) > >This breaks all the CacheValidity functionality when using internal >requests. > >This implies that: >cacheValidity1.isValid(cahceValidity2) >iff >cacheValidity1.toString().equals(cacheValidity2.toString()) > >Any non trivial cacheValidity object cann't work with this mechanism. >For example DeltaTimeCacheValidity doesn't work in internal requests. >(ParametersCacheValidity may work but it relies on the toString() >implementation of java.util.Map) > >More than that, this contract is not documented anywhere, at least not >in CacheValidity interface where it should. (I wasted two days debugging >my system because of that). > It was documented in todo.xml. >How do you think this mechanism can change ? >Is there something planned for 2.1 ? > That's was one of the reasons for 2.1 Vadim >Please, document this !! > > > >Thanks, > >Amir Rosen >CTI Squared >amir@cti2.com >+972-9-9605200 (258) > > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org