jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r354818 - /incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
Date Wed, 07 Dec 2005 17:48:38 GMT
Author: bcm
Date: Wed Dec  7 09:48:29 2005
New Revision: 354818

URL: http://svn.apache.org/viewcvs?rev=354818&view=rev
Log:
always treat the root node as a collection resource.

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java?rev=354818&r1=354817&r2=354818&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
Wed Dec  7 09:48:29 2005
@@ -200,6 +200,10 @@
             boolean isCollection = true;
             Node n = (Node)item;
             try {
+                if (n.getPath().equals("/")) {
+                    // the root node always represents a collection
+                    return true;
+                }
                 for (int i = 0; i < nodetypeNames.length && isCollection; i++)
{
                     isCollection = collectionNames ? n.isNodeType(nodetypeNames[i]) : !n.isNodeType(nodetypeNames[i]);
                 }
@@ -226,4 +230,4 @@
         }
         return resourceFilter;
     }
-}
\ No newline at end of file
+}



Mime
View raw message