jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1138427 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Wed, 22 Jun 2011 12:18:36 GMT
Author: thomasm
Date: Wed Jun 22 12:18:35 2011
New Revision: 1138427

URL: http://svn.apache.org/viewvc?rev=1138427&view=rev
Log:
getJournal(): addNode operation didn't produce the correct Json

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1138427&r1=1138426&r2=1138427&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Wed Jun 22 12:18:35 2011
@@ -173,13 +173,13 @@ public class MicroKernelImpl implements 
 
                     public void childNodeAdded(String nodePath, String childName, String
id) {
                         buff.append("+ ").
-                            key(PathUtils.concat(nodePath, childName));
+                            key(PathUtils.concat(nodePath, childName)).object();
                         try {
                             toJson(buff, rep.getStore().getNode(id), childName, Integer.MAX_VALUE,
0, -1);
                         } catch (Exception e) {
                             buff.value("ERROR: failed to retrieve node " + id);
                         }
-                        buff.append("\n");
+                        buff.endObject().append("\n");
                     }
 
                     public void childNodeDeleted(String nodePath, String childName, String
id) {



Mime
View raw message