jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1197615 - in /jackrabbit/trunk: jackrabbit-jcr2dav/pom.xml jackrabbit-spi2dav/pom.xml jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Date Fri, 04 Nov 2011 15:57:43 GMT
Author: reschke
Date: Fri Nov  4 15:57:42 2011
New Revision: 1197615

URL: http://svn.apache.org/viewvc?rev=1197615&view=rev
Log:
JCR-2540: move/reorder not handled properly by observation

Fix identifier for NODE_MOVED events.

Modified:
    jackrabbit/trunk/jackrabbit-jcr2dav/pom.xml
    jackrabbit/trunk/jackrabbit-spi2dav/pom.xml
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2dav/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2dav/pom.xml?rev=1197615&r1=1197614&r2=1197615&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2dav/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-jcr2dav/pom.xml Fri Nov  4 15:57:42 2011
@@ -79,7 +79,6 @@
                       <!-- JCR-2539 : user data (observation) -->
                       org.apache.jackrabbit.test.api.observation.GetUserDataTest
                       <!-- JCR-2540 : move/reorder (observation) -->
-                      org.apache.jackrabbit.test.api.observation.GetIdentifierTest#testNodeMoved
                       org.apache.jackrabbit.test.api.observation.GetIdentifierTest#testNodeRemoved
                     
                       <!-- JCR-2541 : event journal -->
                       org.apache.jackrabbit.test.api.observation.EventJournalTest

Modified: jackrabbit/trunk/jackrabbit-spi2dav/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/pom.xml?rev=1197615&r1=1197614&r2=1197615&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/pom.xml Fri Nov  4 15:57:42 2011
@@ -76,7 +76,6 @@
                   <!-- JCR-2539 : user data (observation) -->
                   org.apache.jackrabbit.test.api.observation.GetUserDataTest
                   <!-- JCR-2540 : move/reorder (observation) -->
-                  org.apache.jackrabbit.test.api.observation.GetIdentifierTest#testNodeMoved
                   org.apache.jackrabbit.test.api.observation.GetIdentifierTest#testNodeRemoved
                   <!-- JCR-2541 : event journal -->
                   org.apache.jackrabbit.test.api.observation.EventJournalTest

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java?rev=1197615&r1=1197614&r2=1197615&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Fri Nov  4 15:57:42 2011
@@ -2150,7 +2150,7 @@ public class RepositoryServiceImpl imple
 
             ItemId eventId = null;
             try {
-                if (type == Event.NODE_ADDED || type == Event.NODE_REMOVED) {
+                if (type == Event.NODE_ADDED || type == Event.NODE_REMOVED || type == Event.NODE_MOVED)
{
                     eventId = uriResolver.getNodeId(href, sessionInfo);
                 } else {
                     eventId = uriResolver.getPropertyId(href, sessionInfo);



Mime
View raw message