jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r707664 - /jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Date Fri, 24 Oct 2008 15:59:40 GMT
Author: angela
Date: Fri Oct 24 08:59:39 2008
New Revision: 707664

URL: http://svn.apache.org/viewvc?rev=707664&view=rev
Log:
fill the service's namespace cache upon first login in order to avoid reopening new connections
upon processing the first namespace sensitive response (getQNodeTypeDefinitions, getItemInfos
etc.).

Modified:
    jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java?rev=707664&r1=707663&r2=707664&view=diff
==============================================================================
--- jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Fri Oct 24 08:59:39 2008
@@ -547,6 +547,19 @@
                 method.releaseConnection();
             }
         }
+
+        // make sure the general namespace mappings have been loaded once
+        // before additional requests are executed that rely on the namespace
+        // mappings.
+        if (nsCache.prefixToURI.isEmpty()) {
+            try {
+                getRegisteredNamespaces(sessionInfo);
+            } catch (RepositoryException e) {
+                // ignore
+            }
+        }
+
+        // return the sessionInfo
         return sessionInfo;
     }
 



Mime
View raw message