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 216263 - annoying proxy authentication dialog
Summary: annoying proxy authentication dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 14:20 UTC by t_gergely
Modified: 2013-03-20 12:20 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 t_gergely 2012-08-01 14:20:31 UTC
I use an http proxy set up like this:
Tools/Options/Proxy Settings/[More]
[x] Proxy Requires Authentication
Username: ...
Password: **********

Whether I check "Tools/Servers/Java/Use IDE's proxy setting" checkbox or not, autoupdate keeps popping up the empty proxy auth dialog.

FINE [glassfish]: HTTP Command: http://localhost:4848/__asadmin/version
INFO [org.netbeans.core.NbProxySelector]: Incomplete SOCKS Server [/] found in ProxySelector[Type: 2] for uri socket://localhost:4848. 
FINER [glassfish]: AdminAuthenticator.getPasswordAuthentication() with prompt Squid proxy-caching web server
WARNING [glassfish]: No authentication set while requesting http://updates.netbeans.org/netbeans/updates/7.1.2/uc/final/certified/catalog.xml.gz?unique=NB_GFMOD_JAVA_WEBEE034f09f66-54c4-4129-9bc8-cea0913e392a_403a1058-6e73-4ab4-9bb7-ccfa81ede2e0
INFO [org.netbeans.modules.autoupdate.updateprovider.DownloadListener]: Reading URL http://updates.netbeans.org/netbeans/updates/7.1.2/uc/final/certified/catalog.xml.gz?unique=NB_GFMOD_JAVA_WEBEE034f09f66-54c4-4129-9bc8-cea0913e392a_403a1058-6e73-4ab4-9bb7-ccfa81ede2e0 failed (java.io.IOException: Server returned HTTP response code: 407 for URL: http://updates.netbeans.org/netbeans/updates/7.1.2/uc/final/certified/catalog.xml.gz?unique=NB_GFMOD_JAVA_WEBEE034f09f66-54c4-4129-9bc8-cea0913e392a_403a1058-6e73-4ab4-9bb7-ccfa81ede2e0)
INFO [org.netbeans.modules.autoupdate.ui.Utilities]: Server returned HTTP response code: 407 for URL: http://updates.netbeans.org/netbeans/updates/7.1.2/uc/final/certified/catalog.xml.gz?unique=NB_GFMOD_JAVA_WEBEE034f09f66-54c4-4129-9bc8-cea0913e392a_403a1058-6e73-4ab4-9bb7-ccfa81ede2e0
java.io.IOException: Server returned HTTP response code: 407 for URL: http://updates.netbeans.org/netbeans/updates/7.1.2/uc/final/certified/catalog.xml.gz?unique=NB_GFMOD_JAVA_WEBEE034f09f66-54c4-4129-9bc8-cea0913e392a_403a1058-6e73-4ab4-9bb7-ccfa81ede2e0
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1615)
	at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$2.call(NetworkAccess.java:146)
	at org.netbeans.modules.autoupdate.updateprovider.NetworkAccess$Task$2.call(NetworkAccess.java:136)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)

Based on the source, I found a workaround: I have to add the lines
"useProxyAuthentication=true
proxyAuthenticationUsername=myusername
proxyAuthenticationPassword=cleartextpassword"
to config\Preferences\org\netbeans\modules\glassfish\common.properties.

I don't get the point of org.netbeans.modules.glassfish.common.ProxySettings. Why not use the core ProxySettings or its settings?
Comment 1 TomasKraus 2012-11-22 14:42:26 UTC
This code was completely rewritten in NetBeans 7.3.
Please let me know if you still see this problem with last build from http://bits.netbeans.org/dev/nightly/latest/
Comment 2 TomasKraus 2013-03-11 16:46:07 UTC
Did you try latest NetBeans build?
Comment 3 t_gergely 2013-03-20 12:20:00 UTC
My mail address was invalid, sorry.
Oh, it's been a long time... even 7.1.2 works for me by now (but I don't know why).