ozeigermann 2004/10/05 05:09:24
Modified: src/webdav/server/org/apache/slide/webdav/method Tag:
SLIDE_2_1_RELEASE_BRANCH AbstractWebdavMethod.java
Log:
When checking locks forbidden responses caused stack traces done in the webdav
servlet.
Suppressed them...
Revision Changes Path
No revision
No revision
1.43.2.9 +6 -4
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractWebdavMethod.java
Index: AbstractWebdavMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractWebdavMethod.java,v
retrieving revision 1.43.2.8
retrieving revision 1.43.2.9
diff -u -r1.43.2.8 -r1.43.2.9
--- AbstractWebdavMethod.java 25 Sep 2004 20:35:53 -0000 1.43.2.8
+++ AbstractWebdavMethod.java 5 Oct 2004 12:09:24 -0000 1.43.2.9
@@ -394,7 +394,9 @@
} catch (SlideException ex) {
int statusCode = getErrorCode( ex );
sendError( statusCode, ex );
- throw new WebdavException( statusCode );
+ // do not throw exception as the response code has already been set,
+ // otherwise the servlet will log this as an error and issue a stack
trace
+// throw new WebdavException( statusCode );
} catch (Exception ex) {
token.getLogger().log(ex,LOG_CHANNEL,Logger.ERROR);
int statusCode = WebdavStatus.SC_INTERNAL_SERVER_ERROR;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]