# git-svn error: RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':

3 messages from 2009-07-24 to 2009-07-27. Participants: Timothy Schaeffer, Eric Wong.
Thread: https://gitlist.dev/t/20217

## Timothy Schaeffer, 2009-07-24 14:45

Subject: git-svn error: RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':
Message-ID: <138905EB75AB0D44B6A0ECD251A92EA7011BA99E@sdra00198.intranet.dra-inc.net>
URL: https://gitlist.dev/e/138905EB75AB0D44B6A0ECD251A92EA7011BA99E%40sdra00198.intranet.dra-inc.net

```
Git-svn has been giving me the following error for some time when calling "git svn dcommit":

RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
PROPFIND of '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
302 Found (https://oursvnrepo.net) at /usr/local/libexec/git-core/git-svn line 508

This only occurred when git detected a rename or copy.

Following the lead into git-svn.perl, 
and noticing that some of the '/'s in the path were hex-encoded 
and some were not, 
I changed the regex used to find chars 
to hex-encode in the relative part of the path 
to exclude '/'.  
It works, so far.  
I have included a patch.

Tim S.


diff --git a/git-svn.perl b/git-svn.perl
index 43c86e8..864b752 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3953,7 +3953,7 @@ sub repo_path {
 sub url_path {
 	my ($self, $path) = @_;
 	if ($self->{url} =~ m#^https?://#) {
-		$path =~ s/([^~a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg;
+		$path =~ s/([^~a-zA-Z0-9_.-\/])/uc sprintf("%%%02x",ord($1))/eg;
 	}
 	$self->{url} . '/' . $self->repo_path($path);
 }

```

## Eric Wong, 2009-07-25 09:36

Subject: Re: git-svn error: RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':
Message-ID: <20090725093633.GA15880@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20090725093633.GA15880%40dcvr.yhbt.net
In-Reply-To: <138905EB75AB0D44B6A0ECD251A92EA7011BA99E@sdra00198.intranet.dra-inc.net>

```
Timothy Schaeffer <tschaeffer@dramail.com> wrote:
> Git-svn has been giving me the following error for some time when calling "git svn dcommit":
> 
> RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
> PROPFIND of '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
> 302 Found (https://oursvnrepo.net) at /usr/local/libexec/git-core/git-svn line 508
> 
> This only occurred when git detected a rename or copy.
> 
> Following the lead into git-svn.perl, 
> and noticing that some of the '/'s in the path were hex-encoded 
> and some were not, 
> I changed the regex used to find chars 
> to hex-encode in the relative part of the path 
> to exclude '/'.  
> It works, so far.  
> I have included a patch.

Hi Timothy,

Thanks for the bug report and patch, i'll push it out shortly.  I'm
curious, do you happen to know which version of Subversion the server
was running?  I'm unable to reproduce the problem, but I wouldn't be
surprised if it's only a problem with newere versions.  Thanks.

-- 
Eric Wong

```

## Timothy Schaeffer, 2009-07-27 13:44

Subject: RE: git-svn error: RA layer request failed: PROPFIND requestfailed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':
Message-ID: <138905EB75AB0D44B6A0ECD251A92EA7011BAA76@sdra00198.intranet.dra-inc.net>
URL: https://gitlist.dev/e/138905EB75AB0D44B6A0ECD251A92EA7011BAA76%40sdra00198.intranet.dra-inc.net
In-Reply-To: <20090725093633.GA15880@dcvr.yhbt.net>

```
 

> -----Original Message-----
> From: Eric Wong [mailto:normalperson@yhbt.net] 
> Timothy Schaeffer <tschaeffer@dramail.com> wrote:
> > Git-svn has been giving me the following error for some 
> time when calling "git svn dcommit":
> > 
> > RA layer request failed: PROPFIND request failed on 
> '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
> > PROPFIND of 
> '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 
> > 302 Found (https://oursvnrepo.net) at 
> > /usr/local/libexec/git-core/git-svn line 508
> > 
> > This only occurred when git detected a rename or copy.
> > 
> > Following the lead into git-svn.perl, and noticing that some of the 
> > '/'s in the path were hex-encoded and some were not, I changed the 
> > regex used to find chars to hex-encode in the relative part of the 
> > path to exclude '/'.
> > It works, so far.  
> > I have included a patch.
> 
> Hi Timothy,
> 
> Thanks for the bug report and patch, i'll push it out 
> shortly.  I'm curious, do you happen to know which version of 
> Subversion the server was running?  I'm unable to reproduce 
> the problem, but I wouldn't be surprised if it's only a 
> problem with newere versions.  Thanks.
> 
> --
> Eric Wong
> 

The server is running svn 1.4.6.

```
