cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: TreeProcessor reloads sitemap.xmap every time
Date Fri, 15 Mar 2002 10:51:07 GMT
volker.schmitt@basf-it-services.com wrote:

>
>Hi,
>
>I found a problem in the new TreeProcessor Sitemap implementation (sitemap.xmap
>reloaded every time).
>The bug is in "org.apache.cocoon.components.treeprocessor.sitemap.MountNode"
>
>private synchronized TreeProcessor getProcessor(Environment env, String source)
>throws Exception {
>
>        TreeProcessor processor = (TreeProcessor)processors.get(source);
>
>        if (processor == null) {
>
>            if (source.charAt(source.length() - 1) == '/') {
>                source = source + "sitemap.xmap";
>            }
>
>            processor = this.parentProcessor.createChildProcessor(
>                this.manager, this.language, env.resolve(source));
>
>            processors.put(source, processor);
>        }
>
>        return processor;
>    }
>
>If source ends with "/",  the "processor.get(source)" is done with the original
>source but the "processors.put(source, processor)" is done with 'source + "
>sitemap.xmap"'. So the get never matches the put.
>
>Volker
>
Corrected ! Thanks for reporting.

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:sylvain@apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message