Hi,
In 2.1 every sitemap was mounted by root sitemap and thus mounted sitemap inherited various settings
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 500
(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 would
be hard-coded into SitemapServlet.
What do you think about such idea? Do you have any better one?
--
Best regards,
Grzegorz Kossakowski