cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juergen.se...@basf-it-services.com
Subject Re: Errorhandling for internal requests
Date Thu, 10 Apr 2003 14:02:02 GMT
Hi Sylvain,

we like the idea with the subprotocol and are going to implement it

Björn and Jürgen





                                                                                         
                                                   
                      Sylvain Wallez                                                     
                                                   
                      <sylvain.wallez@anywar         An:      cocoon-dev@xml.apache.org
                                                     
                      e-tech.com>                    Kopie:   (Blindkopie: Juergen Seitz/BASF-AG/BASF)
                                      
                                                     Thema:   Re: Errorhandling for internal
requests                                        
                      10.04.2003 15:28                                                   
                                                   
                      Bitte antworten an                                                 
                                                   
                      cocoon-dev                                                         
                                                   
                                                                                         
                                                   
                                                                                         
                                                   



What's the difference between
  <map:redirect-to uri="cocoon://blah">
and
  <map:generate src="cocoon://blah">
  <map:serialize/>

Not that much, in fact... I don't think your use case can be considered
as a general behaviour that should be "hardcoded" in the sitemap engine.

If we need to tell externally to the called pipeline if it should handle
errors or not, this should go through the URI. We can either use a
particular subprotocol (e.g. "cocoon:handle-errors://blah"), or an
additional request parameter (e.g.
"cocoon://blah?cocoon-handle-errors=false"). I like the second solution
more, but we must take great care that this parameter is allowed only
internally to avoid any security hole.

But I'm still not sure it's good to control error-handling behaviour
from the oustide. At least we must have it from the inside.

What do others think ?

Sylvain



Mime
View raw message