Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 23000 invoked from network); 14 Mar 2005 13:42:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Mar 2005 13:42:22 -0000 Received: (qmail 28984 invoked by uid 500); 14 Mar 2005 13:42:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 28917 invoked by uid 500); 14 Mar 2005 13:42:19 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 28896 invoked by uid 99); 14 Mar 2005 13:42:19 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 14 Mar 2005 05:42:17 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 863D11BAE3 for ; Mon, 14 Mar 2005 14:31:17 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05898-03 for ; Mon, 14 Mar 2005 14:31:15 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 982CA1BADF for ; Mon, 14 Mar 2005 14:31:15 +0100 (CET) Message-ID: <423594B3.5000706@apache.org> Date: Mon, 14 Mar 2005 14:42:11 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [VOTE] Internal Pipelines Error Handling References: <4234DFFF.80609@reverycodes.com> <423547EA.3010809@apache.org> <42358BC5.6090107@reverycodes.com> In-Reply-To: <42358BC5.6090107@reverycodes.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Vadim Gritsenko wrote: > Sylvain Wallez wrote: > >> Vadim Gritsenko wrote: >> >>> >> >> >> Or even better, let's put this information on the handle-error >> statement itself, because it's really where it belongs: > > > Only problem I see with it is that it opens up a scenario: > > > ... > > ... > > > ... > > > > And I'm not sure we want to go there. Hence, attribute on the pipeline > itself is better, IMHO. It indicates that this is a feature of the > pipeline (similar to internal-only="true"). The easy solution is to consider that there can be only one per ! Currently, and for historical reasons, there can be a combination of either : where the handler will need to have its own generator or where the ErrorGenerator is automatically added. The second form can be considered to be a deprecated legacy feature (need to add logs for it, BTW), and we can therefore safely put the "when" attribute on the first form (with no "type" attribute). > OTOH, using handle-errors attribute allows for: > > > ... > > > ... > > > > Which otherwise would require attribute on map:pipelines, if that > feature is needed at all. Yep. And that shows that it's really a feature of and not of . >> > > > Isn't FS? What would be the > scenario for having error handler for internal but not external requests? Maybe a scenario where you want to have errors be handled by the servlet engine? >>> When attribute is missing or set to false, error handling behaviour >>> is as it is currently. Limitation of current implementation of the >>> feature is that only one, the inner most one error handler will be >>> used for error handling. Implementation can be extended to support >>> hierarchical error handlers, but I followed KISS and YAGNI approaches. >> >> >> >> Internal requests have the problem that pipeline execution occurs out >> of the control of the sitemap engine. Does the above restriction >> apply to pipeline build-time or pipeline execution-time? > > > Yes, good catch. I implemented single error handler for pipeline > processing time. Pipeline assembly stage can use hierarchical handlers. Ok, cool. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }