jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r580406 - /jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java
Date Fri, 28 Sep 2007 16:31:37 GMT
Author: mreutegg
Date: Fri Sep 28 09:31:37 2007
New Revision: 580406

URL: http://svn.apache.org/viewvc?rev=580406&view=rev
Log:
JCR-1147: spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId

Modified:
    jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java?rev=580406&r1=580405&r2=580406&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/spi2jcr/src/main/java/org/apache/jackrabbit/spi2jcr/RepositoryServiceImpl.java
Fri Sep 28 09:31:37 2007
@@ -258,7 +258,9 @@
      */
     public NodeId getRootId(SessionInfo sessionInfo)
             throws RepositoryException {
-        return getIdFactory().createNodeId((String) null, Path.ROOT);
+        SessionInfoImpl sInfo = getSessionInfoImpl(sessionInfo);
+        return idFactory.createNodeId(sInfo.getSession().getRootNode(),
+                sInfo.getNamespaceResolver());
     }
 
     /**



Mime
View raw message