Eclipse, Subclipse 1.8.2, SVN 1.7.0 asks password every action

大城市里の小女人 提交于 2019-12-03 12:18:40

问题


After I installed new Eclipse Indigo, it asks me for password every action I do in SVN Repository perspective (e.g. browse through every single folder ask password again).

Normally use SVNKit, it ask for password once per session. SVNKit doesn't support SVN 1.7.0 yet.

How can I fix this or is it normal behavior of JavaHL?

Note: I don't want to save the password, but I want to enter the password once per session & repository. If I restart eclipse, I want to enter password again.

Settings:

  • Eclipse Indigo SR1
  • Subclipse 1.8.2
  • SVN 1.7.0 (workspace)
  • SVN Client: JavaHL 1.7.1

Update: SVNKit 1.7.4 is now available.


回答1:


The once per session caching is a feature that SVNKit provides. JavaHL does not provide this. It sounds like you do not allow SVN to cache your credentials or you are using svn+ssh:// in which case SVN cannot cache your credentials. If it is the latter, you can store your SSH key on the server to avoid logging in and run ssh-agent on your client to provide the certificate to the SSH client.




回答2:


For some reason, I had both SVNKit and JavaHL installed. I needed to update my Eclipse preferences to use SVNKit instead of JavaHL.

In Preferences > Team > SVN > SVN Interface
switch:
JavaHL (JNI) ...
to:
SVNKit (Pure Java) SVNKit ....




回答3:


My observation (with Subclipse 1.6.13 and JavaHL 1.6.12 on Eclipse 3.7.1) is that Subclipse (even with the JavaHL connector) is able to cache the credentials if you create the repository connection in the "SVN Repositories" view.

When you create the the repository connection in the "Checkout projects from SVN" import wizard, the credentials will not get saved. In this case, they won't even get saved when recreating it in the "SVN Repositories" view until the next restart of Eclipse.

You can see if any credentials are saved by looking at the contents of the following folder: C:\Users\\AppData\Roaming\Subversion (on Windows 7). When any credentials are stored, an "auth" subdirectory exists in this directory.




回答4:


for svn+ssh create system variable: SVN_SSH

and set it like this:

C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe" -l user -pw password



回答5:


If anybody has the same problem with Kepler and Subversive (on Ubuntu), I was able to solve it by checking 'UI Prompt' in General -> Security -> Security Storage -> [Password]




回答6:


When first time I am facing the same problem I change my windows password and that worked. Actually, in my company, we have the policy to change the password after every 3 months and my password was expired, so I was facing the problem.

The second time I just Restarted the eclipse that works for me.



来源:https://stackoverflow.com/questions/8022679/eclipse-subclipse-1-8-2-svn-1-7-0-asks-password-every-action

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!