unico 2005/06/23 02:01:47
Modified: src/webdav/server/org/apache/slide/webdav Tag:
SLIDE_2_1_RELEASE_BRANCH WebdavServletConfig.java
src/conf/webapp Tag: SLIDE_2_1_RELEASE_BRANCH web.xml
Log:
Allow turning of depth limitation by specifying a parameter value of -1
Revision Changes Path
No revision
No revision
1.13.2.1 +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.13
retrieving revision 1.13.2.1
diff -u -r1.13 -r1.13.2.1
--- WebdavServletConfig.java 5 Aug 2004 14:43:34 -0000 1.13
+++ WebdavServletConfig.java 23 Jun 2005 09:01:47 -0000 1.13.2.1
@@ -155,6 +155,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
No revision
No revision
1.30.2.4 +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.30.2.3
retrieving revision 1.30.2.4
diff -u -r1.30.2.3 -r1.30.2.4
--- web.xml 30 Nov 2004 15:17:06 -0000 1.30.2.3
+++ web.xml 23 Jun 2005 09:01:47 -0000 1.30.2.4
@@ -108,7 +108,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]