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 226741

Summary: Can not connect to svn repo (using http protocol) behind a proxy with authentication.
Product: versioncontrol Reporter: mwprado <mwprado>
Component: SubversionAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED FIXED    
Severity: normal CC: tilman
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 226792    
Bug Blocks:    
Attachments: nb7.3.log
IDE log with manual proxy setup

Description mwprado 2013-02-26 21:33:09 UTC
Created attachment 131923 [details]
nb7.3.log

If I try to connect on a svn repo using http protocol give me a error
svn: E170001: HTTP proxy authorization failed
svn: E170001: HTTP proxy authorization failed

When I try on NB7.2.1 I got to connect.
Comment 1 Ondrej Vrabec 2013-02-27 06:33:41 UTC
From the IDE log it seems you're using a PAC file to configure the proxy. Have you tried to setup the settings in the IDE manually? Tools -> Options and setup http proxy *plus* the proxy credentials manually. Does it help?
Comment 2 mwprado 2013-02-27 11:24:17 UTC
yes, but it has showed same behavior.

(In reply to comment #1)
> From the IDE log it seems you're using a PAC file to configure the proxy. Have
> you tried to setup the settings in the IDE manually? Tools -> Options and setup
> http proxy *plus* the proxy credentials manually. Does it help?
Comment 3 mwprado 2013-02-27 12:27:04 UTC
Created attachment 131958 [details]
IDE log with manual proxy setup

I can read news from form start page, so I beleave that is a problem with svnkit.
Comment 4 Ondrej Vrabec 2013-02-27 12:34:03 UTC
check D:\Usuarios\moacyrprado\Dados de aplicativos\NetBeans\7.3\config\svn\config\servers when the update fails. Does it contain orrect http proxy credentials?
It should look similar to:
> [global]
> http-proxy-host = PROXY_HOST
> http-proxy-port = PORT
> http-proxy-username = USERNAME
> http-proxy-password = PASSWORD
Comment 5 mwprado 2013-02-27 12:48:54 UTC
(In reply to comment #4)
> check D:\Usuarios\moacyrprado\Dados de
> aplicativos\NetBeans\7.3\config\svn\config\servers when the update fails. Does
> it contain orrect http proxy credentials?
> It should look similar to:
> > [global]
> > http-proxy-host = PROXY_HOST
> > http-proxy-port = PORT
> > http-proxy-username = USERNAME
> > http-proxy-password = PASSWORD

The file is ok.
Comment 6 Ondrej Vrabec 2013-02-27 12:52:47 UTC
hmm, can you then try to switch to commandline client at least temporarily? Tools -> Options -> Misc -> Versioning -> Subversion, Preferred subversion client -> CLI (assuming you have a 1.7 commandline client - such as SlikSVN - installed)
Comment 7 Ondrej Vrabec 2013-02-27 12:56:14 UTC
btw, none of your attached messages logs contained any error. Please try again, once the error dialog is displayed and dismissed, the messages.log should contain an exception saying what's wrong.
Comment 8 mwprado 2013-02-27 13:26:32 UTC
(In reply to comment #7)
> btw, none of your attached messages logs contained any error. Please try again,
> once the error dialog is displayed and dismissed, the messages.log should
> contain an exception saying what's wrong.

I cant install software on my computer, but I got work downgrading the files from "NetBeans 7.3\ide\modules\ext" to 7.2.1 jars:

 Pasta de D:\Arquivos de programas\NetBeans 7.3\ide\modules\ext

25/02/2013  14:40            68.972 svnClientAdapter-main.jar
25/02/2013  14:40            90.748 svnClientAdapter-svnkit.jar
25/02/2013  14:40         3.694.727 svnkit.jar
Comment 9 mwprado 2013-02-27 14:22:25 UTC
I got anothers erros changing jars versions but I can connect to server.
Comment 10 Ondrej Vrabec 2013-02-27 14:24:43 UTC
btw, what protocol do you use? http or https?
Comment 11 mwprado 2013-02-27 14:26:00 UTC
http
Comment 12 Ondrej Vrabec 2013-02-27 14:35:08 UTC
Should be fixed in svnkit 1.7.8, see http://svn.svnkit.com/repos/svnkit/tags/1.7.8/CHANGES.txt
We should upgrade from 1.7.6 to 1.7.8 soon.
Comment 13 mwprado 2013-02-27 14:59:23 UTC
(In reply to comment #12)
> Should be fixed in svnkit 1.7.8, see
> http://svn.svnkit.com/repos/svnkit/tags/1.7.8/CHANGES.txt
> We should upgrade from 1.7.6 to 1.7.8 soon.

I'm trying to upgrade to test svnkit, but I dont know what files I have to copy on NB folders.
Comment 14 Ondrej Vrabec 2013-05-14 12:07:43 UTC
svnkit upgraded, should be fixed: http://hg.netbeans.org/core-main/rev/a3a1d834c97d
Comment 15 Ondrej Vrabec 2013-10-17 11:26:07 UTC
*** Bug 237246 has been marked as a duplicate of this bug. ***
Comment 16 mwprado 2014-05-05 18:15:53 UTC
This bug is preset yet. I have the problem again when I've changet my proxy password. The problem is on file "...\AppData\Roaming\NetBeans\8.0\config\svn\config\servers". That file was not updated when I enter the new password on proxy connection form.
Comment 17 Ondrej Vrabec 2014-05-05 18:24:39 UTC
(In reply to mwprado from comment #16)
> This bug is preset yet. I have the problem again when I've changet my proxy
> password. The problem is on file
> "...\AppData\Roaming\NetBeans\8.0\config\svn\config\servers". That file was
> not updated when I enter the new password on proxy connection form.
And it worked with the previous password?
Are you sure you updated Tools -> Options -> General -> Proxy settings correctly? 
Have you restarted the IDE to make sure everything is reloaded?
Comment 18 mwprado 2014-05-05 18:38:12 UTC
(In reply to Ondrej Vrabec from comment #17)
> (In reply to mwprado from comment #16)
> > This bug is preset yet. I have the problem again when I've changet my proxy
> > password. The problem is on file
> > "...\AppData\Roaming\NetBeans\8.0\config\svn\config\servers". That file was
> > not updated when I enter the new password on proxy connection form.
> And it worked with the previous password?
> Are you sure you updated Tools -> Options -> General -> Proxy settings
> correctly? 
> Have you restarted the IDE to make sure everything is reloaded?

I typed the new password, but the file was not updated. If I close NB and change the file by hand, when I reopen NB the file back to the wrong password
Comment 19 mwprado 2014-05-05 20:52:13 UTC
I 've removed netbeans config folder ("...\AppData\Roaming\NetBeans\8.0\) and recrete executing NB. Set proxy to the new password and checkout my project. It's a workaround.
Comment 20 Ondrej Vrabec 2014-05-06 06:39:01 UTC
(In reply to mwprado from comment #18)
> I typed the new password, but the file was not updated. If I close NB and
> change the file by hand, when I reopen NB the file back to the wrong password
Where do you set the proxy username/password??? Under no circumstances you are supposed to touch the config file, if you update it, it will be rewritten almost immediately. You must enter the proxy settings inside NetBeans (Tools -> Options).
But still after setting the proxy inside Netbeans you have to restart.

> I 've removed netbeans config folder ("...\AppData\Roaming\NetBeans\8.0\) and recrete executing NB. Set proxy to the new password and checkout my project. It's a workaround.
And definitely wrong. Again, you SHOULD NOT touch or edit the file.
Comment 21 mwprado 2014-05-06 14:03:59 UTC
Yes, its a worng way, but I need it. 
I have setted the proxy on options menu, restart netbeans but it not change ther server file. I could change my password again to test.
Comment 22 Ondrej Vrabec 2014-05-06 14:57:30 UTC
i think i found the problem and finally understand what you're trying to imply. The username is updated while the password not (an old value is kept no matter how often it is updated in the proxy settings dialog). fixing...

fix: http://hg.netbeans.org/core-main/rev/d7a919fecb28
Comment 23 mwprado 2014-05-06 17:18:42 UTC
Exactly!

To clarify, my environment has a proxy using ldap authentication. Our passwords expires monthly. So after change my windows password, I have to set proxy  autentication on Netbeans(Tools -> Options) to new password. Although, I have configured the Netbeans to a new password, I don't have any success on connect. Investigating, I discover that "server" file is not being updating, remaining the first password.
Comment 24 Quality Engineering 2014-05-07 02:17:37 UTC
Integrated into 'main-silver', will be available in build *201405070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d7a919fecb28
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #226741 - Can not connect to svn repo (using http protocol) behind a proxy with authentication.
null should never be passed as argument, the final keyring key is made as a concatenation of the passed values.