This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128624 - netbeans' svn config gets overwritten with wrong svn+ssh URL
Summary: netbeans' svn config gets overwritten with wrong svn+ssh URL
Status: RESOLVED WORKSFORME
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 20:39 UTC by lifeisalesson
Modified: 2008-02-28 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lifeisalesson 2008-02-27 20:39:13 UTC
netbeans seems to generate a subversion config file (in Windows %APPDATA%\.netbeans\6.0\config\svn\config\config). The
[tunnels] section is set without "/" and/or "\", an example: 

     ssh = $SVN_SSH plink.exe -l me -i  "E://programs//cygwin//home//me//.ssh//id_rsa.ppk" 

will be transformed to 

     ssh = $SVN_SSH plink.exe -l me -i  "E://programs//cygwin//home//me//.ssh//id_rsa.ppk"

at every startup of netbeans. This results in an "Connection closed unexpectedly"-Error Message. The possible workaround
is to edit the config file to revert to the state before the netbeans start - but that's a step that should be avoided.
Comment 1 Tomas Stupka 2008-02-27 20:58:03 UTC
> will be transformed to 
> ssh = $SVN_SSH plink.exe -l me -i  "E://programs//cygwin//home//me//.ssh//id_rsa.ppk"
i guess you mean ssh = $SVN_SSH plink.exe -l me -i  "E:programscygwinhomeme.sshid_rsa.ppk"

did you try without the quotation marks?

where does the value "ssh = $SVN_SSH plink.exe -l me -i  "E://programs//cygwin//home//me//.ssh//id_rsa.ppk"" come from?
the nb UI or %APPDATA%\Subversion\config ?

i suggest you try out http://wiki.netbeans.org/FaqSubversionSSH

lets us know if it wokred for you
thanks

Comment 2 lifeisalesson 2008-02-27 21:15:20 UTC
yes you are totally right - i meant "E:programscygwinhomeme.sshid_rsa.ppk".

The path is set in both - the nb UI AND %APPDATA%\Subversion\config. When I set the path via the nb UI
(VERSIONING\CHECKOUT --> editing the tunnel command) the config file is written correctly again. But at the next startup
of nb the file gets rewritten and the path is wrong again.

Comment 3 lifeisalesson 2008-02-27 21:17:30 UTC
I tried without the quotation marks - but with no success.
Comment 4 Tomas Stupka 2008-02-27 22:07:11 UTC
how exactly is your setting in
%APPDATA%\Subversion\config
Comment 5 lifeisalesson 2008-02-27 23:06:28 UTC
THANKS it works! I had to use "/" in %APPDATA%\Subversion\config instead of "\" (did not use it consistent in nb UI
tunnel command and %APPDATA%\Subversion\config. Now I use "/" instead of "//" and/or "\". Can't say what made me using
"//" or "\" (it worked too - until the start of nb). Again. Thanks.
Comment 6 Tomas Stupka 2008-02-28 09:57:44 UTC
ok then. i will close this as worksfrome.

just for the record - we are aware of the fact that the svn+ssh in nb isn't very user friendly and it's one of the first
things we plan to fix in the near future

thanks