Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 13.1 keeps asking credentials for SVN

I'm working with IntelliJ IDEA 13.1.4 and trying to get it to work with Subversion.

My working copies are in the Subversion 1.8 format, and I can commit/update/etc. perfectly with TortoiseSVN 1.8.

When I try to do the same thing in IDEA, it keeps asking for my credentials, even when I check the "Save credentials" box. Even after entering ten times, the dialog keeps popping up. I have to click "Cancel" and can't use Subversion from within IDEA.

I'm trying to connect to a SVN+SSH repository (which, as I mentioned, works when I connect with TortoiseSVN). I can also connect from the SSH terminal in IDEA to the same host.

This has worked for me previously, but after upgrading to Subversion 1.8 and IDEA 13.1.4, this problem arose.

What could be the problem?

like image 916
Pieter-Jan Malfait Avatar asked Aug 21 '14 18:08

Pieter-Jan Malfait


1 Answers

I faced that problem since IDEA 13.0.1, now, with 13.1.4, I find hard for a workaround, I found something that work for me.

Note: I am using linux and svn 1.7.

A. I add some parameters to the JVM for IDEA, that parameters can be added in the file:

${IDEA_INSTALL_DIR}/bin/idea64.vmoptions

(in my case, I have 64bits linux, for 32bits it is idea.vmoptions in the same place)

I add the next JVM parameter at the end of the file:

-Dsvnkit.http.methods=Basic,Digest,NTLM

ref: original reference

B. My linux svn default version is 1.8, I guess that ~/.subversion/* files can have a 1.8 specific format (I will find the answer later :) ), And supposing that, I used another path for svn 1.7 auth and conf files, in my case, ~/.subversion1.7/.

C. In IntelliJ, I go to subversion settings (Settings->Version Control->Subversion) and setup my paramaters like next image:

enter image description here

Right there, I used the new path for auth files, and the path to the svn 1.7.

D. After all that, I click on the button "Clear Auth Cache".

E. Restart IntelliJ and all works great as used to be in older versions.

.-

I tried every step alone, but didn't work, until I put all together, I got success results.

I hope this can helps someone else, because is a bug/problem with IDEA 13.* and SVN.

Regards. iVieL.

like image 71
Vielinko Avatar answered Sep 19 '22 10:09

Vielinko