Svn copy calls "... (403 Forbidden) in response to PROPFIND", other actions work

Just for a short background, the reason I'm tracking this particular suffix is ​​because I found it to troubleshoot in our new Maven setting (specifically in the release plugin). release:prepare gives me the same error as in stack trace.

Executing this command ...
svn copy http://[server]/svn/tran1/myproject/trunk http://[server]/svn/tran1/myproject/tags/testtag

... gives me the following error:
svn: Server sent unexpected return value (403 Forbidden) in response to PROPFIND request for '/svn/tran1'

I thought it might be an authentication problem, but I can do almost all the other subversion things I can think of. Place an order, add, commit and update all work from the command line. And here, where it gets really weird ... I can create branches using the Eclipse Subclipse plugin. Perhaps this is not so strange if Eclipse does not actually perform svn copy .

tran1 also has a subversion sibling repository next to it. The copy command works fine there.

The URL that is trying to get permission also looks wrong. He asks about / svn / tran 1 when permissions are set one level deeper / svn / tran 1 / myproject /

Any ideas that might cause my mistake? Thanks.

+4
source share
3 answers

I vaguely remember that I ran into the same problem. I believe the problem was that to use the svn copy operation, you need to at least read access to all parent folders to the root of the repository.

+7
source

When I saw this before, it comes down to the Apache httpd configuration. A 403 should correspond to an error in the logs for the server. This should point you towards the root cause.

0
source

A few hours later, trying to solve this problem, my boss finally worked.

I will be as specific as possible, for the sake of beginners (like me).

Story:

There is no COPY in the httpd.conf section.

Decision:

 vi /etc/apache2/httpd.conf 

Search for:

 <Limit GET PUT PROPFIND OPTIONS REPORT MKACTIVITY CHECKOUT DELETE PROPPATCH MKCOL MERGE COPY> Require valid-user </Limit> 

If COPY is not listed, add it.

Save the edited file.

Restart Apache:

 sudo /etc/init.d/apache2 restart 
0
source

Source: https://habr.com/ru/post/1335627/


All Articles