简体   繁体   English

SubVersion:使用mod_authz_svn从1.7.4升级到1.8.11问题

[英]SubVersion : upgrade from 1.7.4 to 1.8.11 issue with mod_authz_svn

we are using SubVersion since many years, we survided to several upgrades, but now we stuck upgrading our production environment from 1.7.4. 多年来,我们一直在使用SubVersion,我们提供了几次升级,但现在我们坚持从1.7.4升级生产环境。 to 1.8.11. 至1.8.11。

After the upgrade, inside the log I found an error message like this: 升级后,在日志中我发现了一条错误消息,如下所示:

Failed to load the mod_authz_svn config: Section name 'MyNotWorkingRepository:/Host/' contains non-canonical fspath '/Host/' 无法加载mod_authz_svn配置:节名'MyNotWorkingRepository:/ Host /'包含非规范的fspath'/ Host /'

I googled a lot without finding any useful information! 我在很多地方搜索了Google,却没有找到任何有用的信息!

The ACL files were not changed during the upgrade and the strange behavior is that someone works despite to others, similar, that don't work! ACL文件在升级过程中没有更改,奇怪的是有人尽管对别人有效,但类似的情况却不起作用!

Here is an excerpt of the working one: 这是工作中的摘录:

[/]
administrator = rw
supervisor = rw

[MyWorkingRepository:/]
developer1 = rw
developer2 = rw

Here is an excerpt of the NOT working one:

[groups]
developers = developer1, developer2

[/]
administrator = rw
supervisor = rw

[MyWorkingNotRepository:/]
developer1 = r
developer2 = r
developer3 = r
developer4 = r

[MyWorkingNotRepository:/Client/]
developer1 = rw
developer2 = rw

[MyWorkingNotRepository:/Host/]
developer3 = rw
developer4 = rw

Could you help us or point me to a documentation about ACL parser changes? 您能否帮助我们或为我提供有关ACL解析器更改的文档?

Thank you very much, Antonio Petricca 非常感谢Antonio Petricca

Edit 1 : SubVersion is hosted on a Windows Server machine. 编辑1 :SubVersion托管在Windows Server计算机上。

Try removing trailing slash from /Host/ to make it cannonical: 尝试从/Host/删除尾部斜杠以使其规范:

/Host

I could not find any official docs, but some forums (eg. this one ) are claiming that this test (which is returning false on line 2873) indicates that there was change in parsing authz file, so paths such as /a/ are not valid in SVN version 1.8+. 我找不到任何官方文档,但是一些论坛(例如this )声称此测试 (在2873行返回false)表明解析authz文件已更改,因此/a/类的路径没有在SVN 1.8+版本中有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM