juergen 2002/07/29 04:23:01
Modified: src/webdav/server/org/apache/slide/webdav/method
AclMethod.java
Log:
fixed response status
Revision Changes Path
1.25 +10 -10
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java
Index: AclMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AclMethod.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- AclMethod.java 27 Jun 2002 10:49:58 -0000 1.24
+++ AclMethod.java 29 Jul 2002 11:23:01 -0000 1.25
@@ -147,7 +147,7 @@
/**
* Constructor.
- *
+ *
* @param token the token for accessing the namespace
* @param config configuration of the WebDAV servlet
*/
@@ -351,20 +351,20 @@
System.err.println("You are using using an incorrect older parser");
System.err.println("that doesn't provide
Element::getElementsByTagNameNS");
System.err.println("consult the documentation for a list of valid
parsers.");
- e.printStackTrace();
+// e.printStackTrace();
resp.setStatus(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
throw new WebdavException(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
} catch (JDOMException e) {
System.err.println("Error parsing requestBody:");
System.err.println(requestBody);
- e.printStackTrace();
+// e.printStackTrace();
resp.setStatus(WebdavStatus.SC_BAD_REQUEST);
- try {
- resp.sendError(WebdavStatus.SC_BAD_REQUEST, e.getMessage());
- } catch (IOException ioe) {}
+// try {
+// resp.sendError(WebdavStatus.SC_BAD_REQUEST, e.getMessage());
+// } catch (IOException ioe) {}
throw new WebdavException(WebdavStatus.SC_BAD_REQUEST);
} catch (IOException e) {
- e.printStackTrace();
+// e.printStackTrace();
resp.setStatus(WebdavStatus.SC_BAD_REQUEST);
throw new WebdavException(WebdavStatus.SC_BAD_REQUEST);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>