cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject Default handlers of errors in 2.2?
Date Wed, 13 Aug 2008 10:12:45 GMT

In 2.1 every sitemap was mounted by root sitemap and thus mounted sitemap inherited various
like components configuration or map:handle-errors declarations.

By contrast, in 2.2 every sitemap is independent and self-contained so it does not inherit
any kind 
of default declaration of error handlers. This is somehow problematic, because now if pipeline

throws SourceNotFound exception there is no handler for this exception and Cocoon always returns
(Internal Server Error) response status code. This is obviously wrong and the only way to
fix it is 
to declare map:handle-errors section in every sitemap which is rather inconvenient.

I started to think about some kind of default minimalistic handler for basic exceptions that
be hard-coded into SitemapServlet.

What do you think about such idea? Do you have any better one?

Best regards,
Grzegorz Kossakowski

View raw message