can you file a sub-task of the mentioned issue ? -M
On Nov 23, 2007 3:32 PM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: > > Yup - related but even worse - since I can't even get an error. > Isn't there any way to get the value of > org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR to check dir existence *before* > we get in troubles with uploading (e.g. without a full web.xml parsing I > mean) ? > > -- Renzo > > > Matthias Wessendorf wrote: > Hi, > > this bug is related: > > http://issues.apache.org/jira/browse/TRINIDAD-607 > > -M > > On Nov 23, 2007 12:59 PM, Renzo Tomaselli <[EMAIL PROTECTED]> > wrote: > > > Hi, I noticed that in case the parameter > org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR points to an unexisting > directory, an exception is thrown by UploadedFileImpl, but it has no > chance to be caught by application code, since occurring from withing > the TrinidadFilter. > The final result is that users try to save uploaded files, but nothing > happens and no errors are shown. > Very frustrating from the user point of view. This is the typical > situation when things appears running fine at the developer site, while > they don't run at all at the customer site, just because a directory is > missing. > Any workaround to catch that exception and to report it gently to the user ? > Or is there any way to check that parameter consistency in advance, > being usually a static issue ? > > -- Renzo > > > > > > > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org

