ozeigermann 2005/02/10 08:54:38
Modified: src/webdav/server/org/apache/slide/webdav/util
WebdavUtils.java
Log:
Warn in case creation of a path mapper failed
Revision Changes Path
1.37 +10 -7
jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/WebdavUtils.java
Index: WebdavUtils.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/WebdavUtils.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- WebdavUtils.java 9 Feb 2005 19:14:38 -0000 1.36
+++ WebdavUtils.java 10 Feb 2005 16:54:38 -0000 1.37
@@ -35,6 +35,7 @@
import javax.servlet.http.HttpSession;
import org.apache.slide.authenticate.CredentialsToken;
+import org.apache.slide.common.Domain;
import org.apache.slide.common.NamespaceAccessToken;
import org.apache.slide.common.ServiceAccessException;
import org.apache.slide.common.SlideException;
@@ -52,8 +53,10 @@
import org.apache.slide.structure.ObjectAlreadyExistsException;
import org.apache.slide.structure.ObjectNotFoundException;
import org.apache.slide.util.Configuration;
+import org.apache.slide.util.logger.Logger;
import org.apache.slide.webdav.WebdavException;
import org.apache.slide.webdav.WebdavServletConfig;
+import org.apache.slide.webdav.method.AbstractWebdavMethod;
import org.apache.slide.webdav.method.MethodNotAllowedException;
/**
@@ -68,6 +71,8 @@
private static final String CREDENTIALS_ATTRIBUTE =
"org.apache.slide.webdav.method.credentials";
+ private static final String LOG_CHANNEL =
+ WebdavUtils.class.getName();
/**
* Constructs a new String based on bytes sequence contained
@@ -322,9 +327,7 @@
PathMapper mapper = (PathMapper) storeClass.newInstance();
result = mapper.map(req, config);
} catch (Exception e) {
- // XXX that's bad, but right here we have no way to react
- // appropriately
- // or at least issue a warning
+ Domain.log(e, LOG_CHANNEL, Logger.WARNING);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]