wam         2004/02/10 07:33:40

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        SearchMethod.java
  Log:
  print stacktrace for runtime exceptions
  
  Revision  Changes    Path
  1.36      +11 -7     
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/SearchMethod.java
  
  Index: SearchMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/SearchMethod.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- SearchMethod.java 12 Dec 2003 02:59:22 -0000      1.35
  +++ SearchMethod.java 10 Feb 2004 15:33:40 -0000      1.36
  @@ -140,7 +140,7 @@
           searchHelper = token.getSearchHelper();
           retriever = new PropertyRetrieverImpl(token, slideToken, getConfig());
           String slidePath = null;
  -
  +        
           extendedAllprop = getBooleanInitParameter( "extendedAllprop" );
           
           if (Configuration.useSearch ()) {
  @@ -273,8 +273,12 @@
                   ex.printStackTrace();
               }
               throw new WebdavException(WebdavStatus.SC_NOT_FOUND);
  +        } catch (RuntimeException e) {
  +            e.printStackTrace();
  +            resp.setStatus(getErrorCode(e));  // no special handling needed
  +            throw new WebdavException(WebdavStatus.SC_ACCEPTED, false); // abort 
the TA
  +            
           } catch (Exception e) {
  -            // e.printStackTrace();
               resp.setStatus(getErrorCode(e));  // no special handling needed
               throw new WebdavException(WebdavStatus.SC_ACCEPTED, false); // abort 
the TA
           }
  @@ -434,8 +438,8 @@
                   String internalUri = resource.getUri();
                   
                   //String absUri = resource.getExternalHref();
  -//                 absUri = PropertyHelper.getAbsoluteURL
  -//                    (serverURL, req.getContextPath(), internalUri);
  +                //                 absUri = PropertyHelper.getAbsoluteURL
  +                //                    (serverURL, req.getContextPath(), 
internalUri);
   //
                   String absUri = WebdavUtils.getAbsolutePath (internalUri, req, 
getConfig());
                   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to