unico 2005/06/23 02:01:49
Modified: src/webdav/server/org/apache/slide/webdav
WebdavServletConfig.java
src/conf/webapp web.xml
Log:
Allow turning of depth limitation by specifying a parameter value of -1
Revision Changes Path
1.16 +7 -3
jakarta-slide/src/webdav/server/org/apache/slide/webdav/WebdavServletConfig.java
Index: WebdavServletConfig.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/WebdavServletConfig.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- WebdavServletConfig.java 10 Feb 2005 17:26:57 -0000 1.15
+++ WebdavServletConfig.java 23 Jun 2005 09:01:49 -0000 1.16
@@ -166,6 +166,10 @@
}
if (value != null) {
depthLimit = Integer.parseInt(value);
+ // value of -1 signifies no depthlimit
+ if (depthLimit == -1) {
+ depthLimit = Integer.MAX_VALUE;
+ }
}
// read 'default-mime-type' parameter
1.37 +1 -1 jakarta-slide/src/conf/webapp/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/conf/webapp/web.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- web.xml 10 Feb 2005 17:26:57 -0000 1.36
+++ web.xml 23 Jun 2005 09:01:49 -0000 1.37
@@ -109,7 +109,7 @@
<description>
This init-parameter determines the depth limit for PROPFIND
and other
methods, to avoid performance hits on the server for
requests with
- infinite depth.
+ infinite depth. A value of -1 turns off depth limitation.
The default value is '3'.
</description>
</init-param>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]