Commits

Sebastian Sdorra committed f25ac35

fix svn encoding problem, see #22

Comments (0)

Files changed (2)

third-party/svnkit-dav/src/main/java/org/tmatesoft/svn/core/internal/server/dav/DAVRepositoryManager.java

 package org.tmatesoft.svn.core.internal.server.dav;
 
 import java.io.File;
-import java.net.URLDecoder;
 import java.security.Principal;
 import java.util.List;
 import java.util.Map;
         myUserPrincipal = request.getUserPrincipal();
         myRepositoryRootDir = getRepositoryRootDir(request.getPathInfo());
         myResourcePathInfo = getResourcePathInfo(request);
-            
+        
         if (config.isUsingPBA()) {
             String path = null;
             if (!DAVHandlerFactory.METHOD_MERGE.equals(request.getMethod())) {

third-party/svnkit-dav/src/main/java/org/tmatesoft/svn/core/internal/server/dav/handlers/DAVResponse.java

  */
 package org.tmatesoft.svn.core.internal.server.dav.handlers;
 
+import org.tmatesoft.svn.core.internal.util.SVNEncodingUtil;
 
 /**
  * @version 1.1.2
     
     public DAVResponse(String description, String href, DAVResponse nextResponse, DAVPropsResult propResult, int statusCode) {
         myDescription = description;
-        myHref = href;
+        // encode href to fix scm-manager issue #22
+        myHref = SVNEncodingUtil.uriEncode(href);
         myNextResponse = nextResponse;
         myStatusCode = statusCode;
         myPropResult = propResult;