incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1127049 - /sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java
Date Tue, 24 May 2011 13:45:10 GMT
Author: cziegeler
Date: Tue May 24 13:45:10 2011
New Revision: 1127049

URL: http://svn.apache.org/viewvc?rev=1127049&view=rev
Log:
Correct path handling

Modified:
    sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java

Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java?rev=1127049&r1=1127048&r2=1127049&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java
(original)
+++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/jcr/PersistenceHandler.java
Tue May 24 13:45:10 2011
@@ -282,7 +282,7 @@ public class PersistenceHandler implemen
 
                         // we are only interested in locks
                         if ( JCRHelper.NODE_PROPERTY_LOCK_OWNER.equals(propertyName) ) {
-                            ((DefaultJobManager)this.jobManager).notifyActiveJob(path.substring(this.repositoryPath.length()
+ 1));
+                            ((DefaultJobManager)this.jobManager).notifyActiveJob(path.substring(this.repositoryPath.length()
+ 1, pos));
                         }
 
                     } else if ( event.getType() == javax.jcr.observation.Event.NODE_REMOVED)
{



Mime
View raw message