windows 错误:禁止访问“/svn/path/”——不是个案问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7768292/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:16:08  来源:igfitidea点击:

Error:access to '/svn/path/' forbidden - Not a case issue

windowssvntortoisesvnwindows-server-2003

提问by Darakir

I have a developer in another country who is accessing svn from there. Now we had an issue with the firewall, and he could not access the repository for a while. The firewall error should be fixed now, and it works again for others. This devs gets the error "Error:access to '/svn/path/lots-of-numbers' forbidden" though. When I tried to find the cause, I found this: link to similar caseHowever, he sent me the repository link he uses, and it is all in lower case, just as it should be. The permissions are also correct, I just double checked them.

我在另一个国家有一个开发人员从那里访问 svn。现在我们遇到了防火墙问题,他有一段时间无法访问存储库。防火墙错误现在应该被修复,它对其他人再次起作用。不过,这个开发人员收到错误“错误:禁止访问'/svn/path/lots-of-numbers'”。当我试图找到原因时,我发现了这个:link to similar case但是,他给我发送了他使用的存储库链接,并且都是小写的,就像它应该的那样。权限也正确,我只是仔细检查了它们。

Could the problem lie in the firewall somehow, or does anyone have another suggestion?

问题可能出在防火墙上,还是有人有其他建议?

采纳答案by Darakir

Figured it out some time ago, but I guess I should post this here too in case someone else has a similar issue. My problem was actually with permission settings. What I have now that works, are the exact same settings I had in the svn server previously, only now they are inherited from the root. Sooo...yeah. I have no idea why that actually made a difference.

前一段时间想出来了,但我想我也应该把这个贴在这里,以防其他人有类似的问题。我的问题实际上是权限设置。我现在可以使用的设置与我之前在 svn 服务器中的设置完全相同,只是现在它们是从根继承的。呜……是的。我不知道为什么这实际上有所作为。

回答by Dave Niewinski

I've had the same issue for a while and figured out what was wrong. I had a capital where I shouldn't have. My repository was svn/dave, but i had it in the URL as svn/Dave. It let me log in without any issues, but I couldn't actually do anything. Changing it to lower case cleared everything up.

我有一段时间遇到同样的问题,并弄清楚出了什么问题。我有一个我不应该拥有的资本。我的存储库是 svn/dave,但我在 URL 中将它作为 svn/Dave。它让我可以毫无问题地登录,但实际上我什么也做不了。将其更改为小写清除了一切。

回答by Kalpesh Popat

I faced similar situation and I also had changed the permission in the server to inherit from the root.

我遇到了类似的情况,并且我还更改了服务器中的权限以从根继承。

My problem got solved after I issued the command svn update

我发出命令后问题就解决了 svn update

Usually it is a practice that I always follow - I run svn status .and then svn update .before firing svn commit.

通常这是我一直遵循的一种做法——我先跑svn status .,然后svn update .再开火svn commit

I skipped svn updatethis time and caught the error.

svn update这次我跳过并发现了错误。

It looks like svn updatedoes much more than just update the files.

看起来svn update不仅仅是更新文件。