jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1462119 - in /jackrabbit/branches/2.6: ./ jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
Date Thu, 28 Mar 2013 14:35:00 GMT
Author: reschke
Date: Thu Mar 28 14:34:59 2013
New Revision: 1462119

URL: http://svn.apache.org/r1462119
Log:
JCR-3553: improve error logging for unexpected path formats (ported to 2.6)

Modified:
    jackrabbit/branches/2.6/   (props changed)
    jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
    jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java

Propchange: jackrabbit/branches/2.6/
------------------------------------------------------------------------------
  Merged /jackrabbit/trunk:r1462115

Modified: jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java?rev=1462119&r1=1462118&r2=1462119&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
(original)
+++ jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
Thu Mar 28 14:34:59 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/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java?rev=1462119&r1=1462118&r2=1462119&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
(original)
+++ jackrabbit/branches/2.6/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
Thu Mar 28 14:34:59 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