SVN认证取消

发布于 2024-11-04 19:26:41 字数 1459 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦忆晨望 2024-11-11 19:26:41

这取决于IDE的版本,这个问题在IDEA 9之后出现,乍一看似乎是与密码加密有关的错误。
此处您报告了一个问题。

他们说你需要调整 .subversion/servers 并将其设置为

# Password / passphrase caching parameters:
  store-passwords = yes
  store-plaintext-passwords = yes
  store-ssl-client-cert-pp = yes
  store-ssl-client-cert-pp-plaintext = yes

“注意”:这会将密码存储为纯文本!

但这个对 11 版本没有帮助。
我对我的 Community 11 版本进行了这样的修复:

1)转到“设置”

2)然后“版本控制”->“版本控制”。 Subversion

3)按下“清除身份验证缓存”

4)转到“更改”->“存储库”并按下“刷新

IDEA”询问我是否愿意接受证书

5)回答“接受”

然后刷新失败,并出现“svn:身份验证已取消”错误,

但在事件中日志我看到

11:20:12 AM svn: authentication cancelled
11:21:11 AM 0 changes committed, 1 change failed to commit: Toggle Listener more 
11:23:05 AM Not Logged In to Subversion: Click to fix. Not logged In to Subversion 'Subversion Repositories'

6) 我点击“Click to fix”

然后 IDEA 要求我输入帐户和密码,我看到它使用的默认用户名是我在 mac 上的用户名。输入真实姓名和密码后,一切正常。

It depends on the version of the IDE, this problem appeared after IDEA 9 and in a first glance seems to be a bug connected to password encryption.
Here you have an issue reported.

They say you need to tweak .subversion/servers and set it to

# Password / passphrase caching parameters:
  store-passwords = yes
  store-plaintext-passwords = yes
  store-ssl-client-cert-pp = yes
  store-ssl-client-cert-pp-plaintext = yes

NOTE : This will store the passwords as PLAIN TEXT!

But this one does not help for version 11.
I fixed like this for my Community 11 version :

1) Went to Settings

2) Then Version Control-> Subversion

3) Pressed Clear Auth Cache

4) Went to Changes->Repository and pressed Refresh

IDEA asked me if I would like to accept the certificate

5) Answered Accept

Then It failed to refresh with "svn: authentication cancelled" error

But in Event Log I saw

11:20:12 AM svn: authentication cancelled
11:21:11 AM 0 changes committed, 1 change failed to commit: Toggle Listener more 
11:23:05 AM Not Logged In to Subversion: Click to fix. Not logged In to Subversion 'Subversion Repositories'

6) I klicked on "Click to fix"

Then IDEA asked me to enter account and password and I saw that the default user name that it used was my users name on my mac. After I entered the real name and password everything worked fine.

痞味浪人 2024-11-11 19:26:41

我遇到了同样的错误(对于无密码本地存储库)。

删除整个工作副本并重新签出有帮助。再次要求提供新的 WC 指南凭证。之后提交就变得简单了。

I had the same error (for password-less local repository).

Removing whole working copy and re-checkout helped. Credentials were asked once again for new WC guid. After that commits goes straightforward.

爱你是孤单的心事 2024-11-11 19:26:41

我删除了 .subversion 目录,使用 svn 客户端来签入修改后的文件。通过 IDE 更新存储库,一切开始工作。

I removed .subversion directory, used svn client for checking in modified files. Updated repository through IDE and everything started working.

娇柔作态 2024-11-11 19:26:41

Ant 可能会尝试以您不使用的方式访问存储库 - 例如稍微不同的主机名等。然后 svn 询问这个“新”存储库的凭据。

尝试获取 ant 执行的完整 svn 命令行并自行运行。我不是蚂蚁专家,无法帮助你。

Ant might try to access the Repository in a way you don't use - like a slightly different hostname or so. Then svn asks for the credentials of this 'new' repository.

Try to get the full svn command line that ant executes and run it yourself. I am no ant expert, can't help you there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文