You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Weaver, Scott" <Sw...@rippe.com> on 2002/02/20 16:20:08 UTC

Upload Service failure re-directs to index template instead of e rror template

When the Upload service throws an exception (in my case, file size
exceeded), I get redirected to the template.homepage instead of the standard
template.error page. 

This is happening in the Turbine servlet in the doGet() (way before it even
gets to my action) method when the ParameterParser is used for the first
time.  On it's first use the, ParameterParser fires it's parseRequest()
method which subsequently bombs throwing TurbineException when it reaches
the file upload that exceeds the maximum size.  
This exception bubbles up to Turbine.doGet() which eventually invokes
Turbine.handleException().  I think this is where the failure to set the
error template is happening but I'm not sure why.


Any thoughts,
Scott