jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1462115 - in /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav: jcr/DavLocatorFactoryImpl.java simple/LocatorFactoryImplEx.java
Date Thu, 28 Mar 2013 14:31:27 GMT
Author: reschke
Date: Thu Mar 28 14:31:27 2013
New Revision: 1462115

URL: http://svn.apache.org/r1462115
Log:
JCR-3553: improve error logging for unexpected path formats 

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java?rev=1462115&r1=1462114&r2=1462115&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
Thu Mar 28 14:31:27 2013
@@ -62,7 +62,7 @@ public class DavLocatorFactoryImpl exten
                 return (repositoryPath.length() == 0) ? ItemResourceConstants.ROOT_ITEM_PATH
: repositoryPath;
             } else {
                 log.error("Unexpected format of resource path.");
-                throw new IllegalArgumentException("Unexpected format of resource path.");
+                throw new IllegalArgumentException("Unexpected format of resource path: "
+ resourcePath + " (workspace: " + wspPath + ")");
             }
         }
     }

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java?rev=1462115&r1=1462114&r2=1462115&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
Thu Mar 28 14:31:27 2013
@@ -51,7 +51,7 @@ public class LocatorFactoryImplEx extend
             String repositoryPath = resourcePath.substring(wspPath.length());
             return (repositoryPath.length() == 0) ? "/" : repositoryPath;
         } else {
-            throw new IllegalArgumentException("Unexpected format of resource path.");
+            throw new IllegalArgumentException("Unexpected format of resource path: " + resourcePath
+ " (workspace: " + wspPath + ")");
         }
     }
 



Mime
View raw message