Hi,
I've attached a patch for a bugin PropFindMethod that caused a
NullPointerException for the case that an exception occured in
content.retrieve()
The exception is now handled in the same way as usual (throwing a
webdav-exception and sending the errorcode).
Daniel
Index: PropFindMethod.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v
retrieving revision 1.94
diff -w -u -w -r1.94 PropFindMethod.java
--- PropFindMethod.java 1 Dec 2003 12:10:50 -0000 1.94
+++ PropFindMethod.java 28 Jan 2004 16:34:08 -0000
@@ -522,8 +522,9 @@
revisionDescriptor = new NodeRevisionDescriptor(0);
}
} catch (Exception e) {
- e.printStackTrace();
- responseElement = getErrorResponse(object.getUri(), getErrorCode(e),
null);
+ int statusCode = getErrorCode( e );
+ sendError( statusCode, e );
+ throw new WebdavException( statusCode );
}
Vector propertiesParser = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]