vgritsenko 2003/12/21 18:10:44
Modified: java/src/org/apache/xindice/core CollectionManager.java
Log:
Check that passed name matches with the name provided in the configuration
Revision Changes Path
1.21 +5 -2
xml-xindice/java/src/org/apache/xindice/core/CollectionManager.java
Index: CollectionManager.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/CollectionManager.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- CollectionManager.java 11 Dec 2003 11:49:47 -0000 1.20
+++ CollectionManager.java 22 Dec 2003 02:10:44 -0000 1.21
@@ -151,6 +151,9 @@
if (n == null || n.trim().equals("")) {
throw new DBException(FaultCodes.COL_CANNOT_CREATE, "No name
specified");
}
+ if (!n.equals(path)) {
+ throw new DBException(FaultCodes.COL_CANNOT_CREATE, "Name
does not match with path name");
+ }
if (getCollection(n) != null) {
throw new DBException(FaultCodes.COL_DUPLICATE_COLLECTION,