svn: E220000: Not authorized to open root of edit operation

简介: p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}span.s1 {font: 12.

Compare diff 时提示:

svn: E220000: Not authorized to open root of edit operation

查看历史记录时输出:

svn: E220001: Unreadable path encountered; access denied

更新时的输出:

update /Users/aven/Documents/workspace/project -r HEAD --force

    At revision 51.

    svn: E220001: Item is not readable

    svn: E220001: Item is not readable

以上几种错误似乎都是由于一个小Bug引起的。

查看服务端版本

avenMac:conf aven$ svnserve --version
svnserve, version 1.9.5 (r1770682)
   compiled Mar  8 2017, 11:28:39 on x86_64-apple-darwin16.0.0

Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository.
* fs_x : Module for working with an experimental (FSX) repository.

Cyrus SASL authentication is available.
查看客户端版本
avenMac:conf aven$ svn --version
svn, version 1.9.5 (r1770682)
   compiled Mar  8 2017, 11:28:39 on x86_64-apple-darwin16.0.0

Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.9 (compiled with 1.3.9)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /Users/aven/.subversion
* Mac OS X Keychain
操作系统 :mac os sierra 10.12,自带SVN服务器和客户端(有人说是安装了XCode的 command line tools 才有,由于我接手的电脑别人用过,也不敢确定);

后来是更新的问题解决了,提交更新都没有问题,但是查看历史记录和进行版本比较都不行。

网上查到的解决方案:

Subversion装了1.5.2版,乌龟SVN装的是1.5.1版本,可以通过乌龟正常访问到版本库,但当check out时却出现了"Not authorized to open root of edit operation"错误,上网搜索了一下,提供的解决版本如下:
anon-access 属性对目录权限的影响
你想将你的代码库开放给所有人访问,于是你就开放了匿名访问权限,在 svnserve.conf 文件中添加一行:"anon-access=read"。可是对于部分目录,你又不希望别人看到,于是针对那些特别目录,你在 authz.conf 里面进行配置,添加了授权访问的人,并添加了"* ="标记。你认为一切OK了,可是你却发现,那个特别目录却无法访问了,总是提示"Not authorized to open root of edit operation"或者"未授权打开根进行编辑操作"。你再三检查你配置的用户名与密码,确认一切正确,还是无法解决问题
原来,Subversion 有个小 bug ,当"anon-access=read"并且某个目录有被设置上"* ="标记,则会出现上述问题。这个 bug 在当前最新版本上(v1.4)还存在
但我并没有设"*="这种访问方式,用户名、密码、目录访问都正确设置了。当把 anon-access=read 改成 anon-access=none 后,发现,真的可以正常访问了
他这个是1.5版本的,而我这是1.9的,怀着怀疑的态度,试了一下,修改之后也不需要重新启动SVN服务器,结果问题就解决了。

这算是一个Bug吗?

如果算,为什么这个 bug 在 v1.4 之前就存在,

而现在都已经1.9了,还是没有去修复?

======================文档信息===========================

版权声明:非商用自由转载-保持署名-注明出处

署名(BY) :testcs_dn(微wx笑)

文章出处:[无知人生,记录点滴](http://blog.csdn.NET/testcs_dn)

==============欢迎关注我的个人微信订阅号(微wx笑)============

目录
相关文章
|
4月前
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
50 0
|
1月前
|
存储 网络协议 Ubuntu
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
|
3月前
|
Ubuntu 安全 网络安全
百度搜索:蓝易云【Ubuntu系统SVN服务器搭建教程】
现在,你已经成功在Ubuntu系统上搭建了SVN服务器。其他用户可以通过SVN客户端连接到你的SVN服务器,进行代码版本管理和协作开发。注意,为了安全起见,建议配置SSL加密以保护数据传输。
39 1
|
3月前
|
Apache 项目管理 数据安全/隐私保护
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
46 0
|
7月前
|
IDE Linux 开发工具
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决
|
Linux Shell 数据安全/隐私保护
CentOS 搭建SVN服务器
CentOS 搭建SVN服务器
411 0
CentOS 搭建SVN服务器
|
1月前
|
网络协议 Ubuntu Linux
如何在Linux环境搭建本地SVN服务器并结合cpolar实现公网访问
如何在Linux环境搭建本地SVN服务器并结合cpolar实现公网访问
|
2月前
|
存储 网络协议 Ubuntu
Linux环境下SVN服务器的搭建与公网访问:使用cpolar端口映射的实现方法
由于文档资料越来越多,将所有资料都存放在自己的电脑上容易混淆,并且也不利于分享。这种情况下,考虑将资料上传SVN统一管理,这样一来其他人也能很方便的查略各种资料。
|
4月前
|
算法 程序员 Apache
Windows下搭建SVN服务器并配置eclipse和idea
Windows下搭建SVN服务器并配置eclipse和idea
58 1
|
4月前
|
网络安全 数据安全/隐私保护
Centos8下快速搭建SVN服务器
Centos8下快速搭建SVN服务器
89 0