 >                                 }
 >                             }
 >                         }
-685c709
+685c726
 < 						String mimeType = getServletContext().getMimeType(path);
 ---
 >                         String mimeType = getServletContext().getMimeType(path);
-688c712,717
+688c729,735
 < 						}
 ---
 > 						} else {
 >                             int lastSlash = path.replace('\\','/').lastIndexOf('/');
->                             if (path.indexOf(".",lastSlash) == -1) {
+>                             int lastDot = path.indexOf(".", lastSlash);
+>                             if (lastDot == -1) {
 >                                 resp.setContentType("text/html");
 >                             }
 >                         }
-889,903c918,932
+756a804,805
+>         if (fdebug == 1)
+>         System.err.println("-- doHead");
+760c809,811
+< 	/**
+---
+> 
+> 
+>     /**
+773c824,828
+< 		if (req.getContentLength() != 0) {
+---
+>         if (fdebug == 1)
+>         System.err.println("-- doMkcol");
+> 
+> 
+>         if (req.getContentLength() != 0) {
+839c894,898
+< 		if (!readOnly) {
+---
+>         if (fdebug == 1)
+>         System.err.println("-- doDelete");
+> 
+> 
+>         if (!readOnly) {
+882,883c941,946
+< 		if (!readOnly) {
+< 			String path = getRelativePath(req);
+---
+> 
+>         if (fdebug == 1)
+>         System.err.println("-- doPut");
+> 
+>         if (!readOnly) {
+>             String path = getRelativePath(req);
+887,903c950,966
+< 			if (fResLocks.lock(path, lockOwner, true, -1)) {
+< 				try {
 < 					if (parentPath != null && fStore.isFolder(parentPath)
 < 							&& !fStore.isFolder(path)) {
 < 						if (!fStore.objectExists(path)) {

>                 + req.toString();
> 
>         if (fResLocks.lock(path, lockOwner, false, 0)) {
672,682c694,706
< 						if (resourceLength > 0) {
< 							if (resourceLength <= Integer.MAX_VALUE) {
< 								resp.setContentLength((int) resourceLength);

>                         resp.setContentLength((int) fStore
>                                 .getResourceLength(path));
>                     }
905c968
< 					resp.sendError(WebdavStatus.SC_FORBIDDEN);
---
>                     resp.sendError(WebdavStatus.SC_FORBIDDEN);
907c970
< 					resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
---
>                     resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
912c975
< 				resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
---
>                 resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
915c978
< 			resp.sendError(WebdavStatus.SC_FORBIDDEN);
---
>             resp.sendError(WebdavStatus.SC_FORBIDDEN);
935c998,1003
< 		String path = getRelativePath(req);
---
>         if (fdebug == 1)
>         System.err
>                 .println("-- doCopy");
> 
> 
>         String path = getRelativePath(req);
982c1050,1054
< 			String path = getRelativePath(req);
---
>             if (fdebug == 1)
>             System.err.println("-- doMove");
> 
> 
>             String path = getRelativePath(req);
Index: src/main/webapp/WEB-INF/web.xml
===================================================================
RCS file: /cvsroot/webdav-servlet/webdav-servlet/src/main/webapp/WEB-INF/web.xml,v
