Svn error when checkoutng: "It is not allowed to open root from an edit operation"

I have svnserve with the current settings:

svnserve.conf:

anon-access = read #I also tried anon-access = none or comment this line auth-access = write password-db = passwd authz-db = authz 

AuthZ:

 [/] foo = rw [/Subdir] foo = rw bar = rw 

If the user panel "try" checks / the Subdir folder, then it receives an error: "It is not allowed to open root from the editing operation." User foo can do it right.

What can I do with this problem?

+6
svn
source share
5 answers

I found out that removing Satisfy Any from my apache configuration is still fixed.

+3
source share

I think your authz is wrong. [/] is a special case for all repositories. If you want to start authorizing repository paths, you need to put the repository name here using [reponame: repopath]. For more information:

http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html

0
source share

I found the answer in this article: http://wp.evx.me/evolonix/2011/11/27/svn_error_e220000/

Theres is an escape hatch that allows you to trade security features for speed. If you do not use any authorization for each directory (i.e. Do not use mod_authz_svn or a similar module), you can disable path checking. In the httpd.conf or virtual host file, use the SVNPathAuthz directive:

Disabling path verification in general

 <Location /repos> DAV svn SVNParentPath /usr/local/svn SVNPathAuthz off </Location> 

The default directive is SVNPathAuthz "on". When set to โ€œoff,โ€ all path-based authorization checks are disabled; mod_dav_svn stops referencing authorization checks for each path found.

0
source share

I am solving this problem is best check your svn network by following these steps. 1. Open the SVN setup, select the saved data, click the "Clear" button in the authentication data, try again if you have the same problem, follow these steps. 2. Open the SVN setting, select the "Network Menu", click the "Change" button in the Subversion server file, add the line at the bottom of the file HTTP-AUTH types = basic; digest 3. Save this file and try now

0
source share

I got the same error, but solved it differently. I had a check with a subfolder:

 SVN\SubDir 

As in the example using the theme starter, the bar account had access only to SubDir. However, when I tried to update the SubDir folder using the bar account, I received a Not authorized to open root of edit operation error.

I found out that the reason for this is that it is part of a complete check. Typically, a user with limited rights will only scan a specific folder instead of updating in full scan. When I did a separate check of only the desired folder, bar could access it just fine. :)

0
source share

All Articles