jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1213289 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java
Date Mon, 12 Dec 2011 16:00:19 GMT
Author: reschke
Date: Mon Dec 12 16:00:19 2011
New Revision: 1213289

URL: http://svn.apache.org/viewvc?rev=1213289&view=rev
Log:
JCR-3174: Destination URI should be normalized

path-normalize all URIs before further parsing

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java?rev=1213289&r1=1213288&r2=1213289&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java
Mon Dec 12 16:00:19 2011
@@ -183,7 +183,7 @@ public class WebdavRequestImpl implement
             //href should be a Simple-ref production as defined in RFC4918, so it is either
an absolute URI
             //or an absolute path
             try {
-                URI uri = new URI(ref);
+                URI uri = new URI(ref).normalize(); // normalize path (see JCR-3174)
                 String auth = uri.getAuthority();
                 ref = uri.getRawPath();
                 if (auth == null) {



Mime
View raw message