jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r762351 - in /jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client: ClientSession.java ClientWorkspace.java
Date Mon, 06 Apr 2009 14:17:34 GMT
Author: jukka
Date: Mon Apr  6 14:17:33 2009
New Revision: 762351

URL: http://svn.apache.org/viewvc?rev=762351&view=rev
Log:
JCRRMI-17: Multiple TCK test failures

getImportContentHandler() should verify that the given path actually exist.

Modified:
    jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientSession.java
    jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java

Modified: jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientSession.java?rev=762351&r1=762350&r2=762351&view=diff
==============================================================================
--- jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientSession.java
(original)
+++ jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientSession.java
Mon Apr  6 14:17:33 2009
@@ -274,6 +274,7 @@
     /** {@inheritDoc} */
     public ContentHandler getImportContentHandler(
             final String path, final int mode) throws RepositoryException {
+        getItem(path); // Check that the path exists
         try {
             final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
             ContentHandler handler =

Modified: jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java?rev=762351&r1=762350&r2=762351&view=diff
==============================================================================
--- jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
(original)
+++ jackrabbit/commons/jcr-rmi/trunk/jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
Mon Apr  6 14:17:33 2009
@@ -196,6 +196,7 @@
     /** {@inheritDoc} */
     public ContentHandler getImportContentHandler(
             final String path, final int mode) throws RepositoryException {
+        getSession().getItem(path); // Check that the path exists
         try {
             final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
             return new DefaultContentHandler(



Mime
View raw message