jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r470804 - /jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Date Fri, 03 Nov 2006 13:25:49 GMT
Author: angela
Date: Fri Nov  3 05:25:48 2006
New Revision: 470804

URL: http://svn.apache.org/viewvc?view=rev&rev=470804
Log:
work in progress

- missing escaping of item name when building uri.

Modified:
    jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java?view=diff&rev=470804&r1=470803&r2=470804
==============================================================================
--- jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Fri Nov  3 05:25:48 2006
@@ -276,7 +276,7 @@
     private String getItemUri(NodeId parentId, QName childName, SessionInfo sessionInfo)
throws RepositoryException {
         String parentUri = uriResolver.getItemUri(parentId, sessionInfo.getWorkspaceName(),
sessionInfo);
         try {
-            return parentUri + "/" + NameFormat.format(childName, nsResolver);
+            return parentUri + "/" + Text.escape(NameFormat.format(childName, nsResolver));
         } catch (NoPrefixDeclaredException e) {
             throw new RepositoryException(e);
         }



Mime
View raw message