Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 64952 invoked by uid 500); 8 Oct 2002 07:27:37 -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 64941 invoked from network); 8 Oct 2002 07:27:36 -0000 Message-ID: <3DA2893A.8030907@anyware-tech.com> Date: Tue, 08 Oct 2002 09:28:58 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: fr, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Generating a 404 Not Found References: <3DA28518.60303@cbim.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ugo Cei wrote: > [I posted this message on cocoon-users two days ago, but got no reply. > I hope you don't mind if I "escalate" this ;-)] > > Hi people, > > let's say you have a website with an administrative section that is > protected using the Authentication Framework: > > > > > > > > ... > > > > ... > > > > > > > > > > > > The problem here is that when someone requests an URI like > "admin/this-uri-does-not-match-anything", they are redirected to the > login page. I'd like to generate a "404 Not Found" result code > instead, and possibly have it trapped by the map:handle-errors block. Do you think it's good for non authenticated users to even know that a particular URI in a protected part of the URI space exists or not ? I would say no (or tell us your use case), and then your sitemap is just fine... > I'm using C2.1-dev and I see there's a NotifyingGenerator, but I > cannot figure out whether it would be useful in this case and how to > use it. This generator is hard-coded as the start of the handle-errors pipeline, so you can't do anything with it. 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