diff --git a/java/org/apache/catalina/servlets/DataSourcePropertyStore.java b/java/org/apache/catalina/servlets/DataSourcePropertyStore.java index 9ea50e4d331b..4e5d497909a6 100644 --- a/java/org/apache/catalina/servlets/DataSourcePropertyStore.java +++ b/java/org/apache/catalina/servlets/DataSourcePropertyStore.java @@ -42,12 +42,23 @@ /** * WebDAV dead properties storage using a DataSource. *

- * The schema is: - * table properties ( path, namespace, name, node ) - * path: the resource path - * namespace: the node namespace - * name: the local name in the namespace - * node: the full serialized XML node including the name + * A single properties table with four columns is used: + *

+ * The table name used can be configured using the tableName property of the store. + *

+ * Example table schema: + * CREATE TABLE properties ( + * path VARCHAR(1024) NOT NULL, + * namespace VARCHAR(64) NOT NULL, + * name VARCHAR(64) NOT NULL, + * node VARCHAR(2048) NOT NULL, + * PRIMARY KEY (path, namespace, name) + * ) */ public class DataSourcePropertyStore implements WebdavServlet.PropertyStore { diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java b/java/org/apache/catalina/servlets/WebdavServlet.java index e97410f1f591..98737e03299f 100644 --- a/java/org/apache/catalina/servlets/WebdavServlet.java +++ b/java/org/apache/catalina/servlets/WebdavServlet.java @@ -95,7 +95,7 @@ * </init-param> * <init-param> * <param-name>listings</param-name> - * <param-value>false</param-value> + * <param-value>true</param-value> * </init-param> * </servlet> * <servlet-mapping> @@ -104,7 +104,7 @@ * </servlet-mapping> * * - * This will enable read only access. To enable read-write access add: + * This will enable read only access with folder listings enabled. To enable read-write access add: * *

  *  <init-param>
@@ -122,7 +122,7 @@
  *  </servlet-mapping>
  * 
* - * By default access to /WEB-INF and META-INF are not available via WebDAV. To enable access to these URLs, use add: + * By default access to /WEB-INF and META-INF are not available via WebDAV. To enable access to these URLs, add: * *
  *  <init-param>
@@ -142,7 +142,7 @@
  * interface and configuring the Servlet to use that store. The propertyStore init-param allows configuring
  * the classname of the store to use, while the parameters in the form of store.xxx will be set on the
  * store object as bean properties. For example, this would configure a store with class
- * com.MyPropertyStore, and set its field myName to value myValue:
+ * com.MyPropertyStore, and set its property myName to value myValue:
  *
  * 
  *  <init-param>