jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r448254 - /jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java
Date Wed, 20 Sep 2006 16:23:02 GMT
Author: angela
Date: Wed Sep 20 09:23:02 2006
New Revision: 448254

URL: http://svn.apache.org/viewvc?view=rev&rev=448254
Log:
resourcePath instead of repositoryPath used for itemExists check

Modified:
    jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java

Modified: jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java?view=diff&rev=448254&r1=448253&r2=448254
==============================================================================
--- jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java
(original)
+++ jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/transaction/TxLockManagerImpl.java
Wed Sep 20 09:23:02 2006
@@ -532,7 +532,7 @@
         public void start(TransactionResource resource) throws DavException {
             try {
                 // make sure, the given resource represents an existing repository item
-                if (!getRepositorySession(resource).itemExists(getResourcePath())) {
+                if (!getRepositorySession(resource).itemExists(resource.getLocator().getRepositoryPath()))
{
                     throw new DavException(DavServletResponse.SC_CONFLICT, "Unable to start
local transaction: no repository item present at " + getResourcePath());
                 }
             } catch (RepositoryException e) {



Mime
View raw message