lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froethenbac...@apache.org
Subject svn commit: r1053039 - /lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
Date Mon, 27 Dec 2010 10:28:58 GMT
Author: froethenbacher
Date: Mon Dec 27 10:28:58 2010
New Revision: 1053039

URL: http://svn.apache.org/viewvc?rev=1053039&view=rev
Log:
Fixed missing ANONYMOUS identity for creating a session.

Modified:
    lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java

Modified: lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java?rev=1053039&r1=1053038&r2=1053039&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
(original)
+++ lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
Mon Dec 27 10:28:58 2010
@@ -17,6 +17,7 @@
  */
 package org.apache.lenya.cms.site.tree2;
 
+import org.apache.lenya.ac.Identity;
 import org.apache.lenya.cms.observation.AbstractRepositoryListener;
 import org.apache.lenya.cms.observation.RepositoryEvent;
 import org.apache.lenya.cms.publication.Area;
@@ -36,7 +37,8 @@ public class SiteTreeRevisionVerifier ex
             String pubId = steps[steps.length - 4];
             String areaName = steps[steps.length - 2];
             try {
-                Session session = RepositoryUtil.createSession(this.manager, null, false);
+                Session session = RepositoryUtil.createSession(this.manager,
+                        Identity.ANONYMOUS, false);
                 DocumentFactory factory = DocumentUtil.createDocumentFactory(this.manager,
session);
                 Area area = factory.getPublication(pubId).getArea(areaName);
                 SiteTreeImpl tree = new SiteTreeImpl(this.manager, area, getLogger());



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org


Mime
View raw message