fix svn encoding problem, see #22

This commit is contained in:
Sebastian Sdorra
2011-05-29 14:10:39 +02:00
parent 1c9f20daf9
commit 0a4caf052c
2 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,6 @@
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;
@@ -65,7 +64,7 @@ public class DAVRepositoryManager {
myUserPrincipal = request.getUserPrincipal();
myRepositoryRootDir = getRepositoryRootDir(request.getPathInfo());
myResourcePathInfo = getResourcePathInfo(request);
if (config.isUsingPBA()) {
String path = null;
if (!DAVHandlerFactory.METHOD_MERGE.equals(request.getMethod())) {

View File

@@ -11,6 +11,7 @@
*/
package org.tmatesoft.svn.core.internal.server.dav.handlers;
import org.tmatesoft.svn.core.internal.util.SVNEncodingUtil;
/**
* @version 1.1.2
@@ -25,7 +26,8 @@ public class DAVResponse {
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;