jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1386541 - /jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java
Date Mon, 17 Sep 2012 10:21:09 GMT
Author: alexparvulescu
Date: Mon Sep 17 10:21:09 2012
New Revision: 1386541

URL: http://svn.apache.org/viewvc?rev=1386541&view=rev
Log:
OAK-304 Rename ContentSession.getCurrentRoot()

Modified:
    jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java

Modified: jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java?rev=1386541&r1=1386540&r2=1386541&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java
(original)
+++ jackrabbit/oak/trunk/oak-http/src/main/java/org/apache/jackrabbit/oak/http/OakServlet.java
Mon Sep 17 10:21:09 2012
@@ -70,7 +70,7 @@ public class OakServlet extends HttpServ
         try {
             ContentSession session = repository.login(new GuestCredentials(), null);
             try {
-                Root root = session.getCurrentRoot();
+                Root root = session.getLatestRoot();
                 Tree tree = root.getTree(request.getPathInfo());
                 request.setAttribute("root", root);
                 request.setAttribute("tree", tree);



Mime
View raw message