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 217598 - PROXYSETTINGS DO NOT WORK ON MAC WITH JDK 1.7U4
Summary: PROXYSETTINGS DO NOT WORK ON MAC WITH JDK 1.7U4
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 217517 220279 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-30 06:04 UTC by Marian Mirilovic
Modified: 2012-10-18 12:38 UTC (History)
3 users (show)

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 Marian Mirilovic 2012-08-30 06:04:28 UTC
Transfered from https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=14160091

*** PPETKOVI 06/05/12 03:28 pm ***
Install nightly build 6363 or later.
Modify jdev.conf to point to JDK 1.7u4.
Start JDev.
Go to: Preferences -> Web Browser and Proxy -> Proxy Settings.
Click on "Test Proxy" - > BUG it fails.

This problem breaks the Check for Updates functionality, as well as HTML/JSP
Visual Editor.
*** JCRONEMB 06/05/12 04:02 pm *** (CHG: Asg->CCARTER2)
@ *** CCARTER2 06/06/12 09:22 am *** (CHG: FixBy->12.1.2.0.0 DevPri->2)
*** CCARTER2 06/06/12 09:22 am *** (CHG: Asg->RWIDYONO SubComp->IDE_ENV_PREF)
*** RWIDYONO 06/19/12 10:27 am ***
Workaround:

1. The manual proxy settings are incorrectly defaulting to
"www-proxy-us.oracle.com www-proxy.us.oracle.com" port 0.   Manually change
it to "www-proxy-us.oracle.com" port 80.
2. Restart JDev.  The correct proxy settings should take effect

There already is a bug filed for the fact that you have to restart JDev after
changing manual proxy settings that have already been used.
*** RWIDYONO 06/22/12 01:34 pm ***
@ This is an issue with $MW_HOME/jdeveloper/ide/bin/nbproxy.sh, which processes
@ the output of /usr/sbin/scutil to extract the OSx system proxy settings.  In
@ this particular machine, the result of calling scutil with the following
@ commands:
@ .
@ open
@ show State:/Network/Global/Proxies
@ close
@ .
@ is
@ .
@ <dictionary> {
@   ExceptionsList : <array> {
@     0 : *.local
@     1 : 169.254/16
@   }
@   FTPPassive : 1
@   HTTPEnable : 1
@   HTTPPort : 80
@   HTTPProxy : rmdc-proxy.oracle.com
@   __SCOPED__ : <dictionary> {
@     en0 : <dictionary> {
@       ExceptionsList : <array> {
@         0 : *.local
@         1 : 169.254/16
@       }
@       FTPPassive : 1
@       HTTPEnable : 1
@       HTTPPort : 80
@       HTTPProxy : rmdc-proxy.oracle.com
@     }
@   }
@ }
@ .
@ When processed with the following:
@ .
@         http_proxy_host=`/usr/bin/grep HTTPProxy ${scutil_out} | /usr/bin/awk
@ '{print $3}'`
@ .
@ http_proxy_host will be set to "rmdc-proxy.oracle.com rmdc-proxy.oracle.com"
@ (since there are two matches to HTTPProxy).  The same with the port.  The
@ complete proxy value is  "rmdc-proxy.oracle.com rmdc-proxy.oracle.com:80 80",
@ which is of course an invalid proxy specification.
@ .
@ The fix needs to be in nbproxy.sh.  It has to be able to handle multiple
@ results returned from scutil.
*** RWIDYONO 06/22/12 01:35 pm *** (CHG: Asg->MMIRILOV Prod->8506 Comp->NBIDE SubComp->OTHER)
Comment 1 Jiri Rechtacek 2012-09-04 12:38:44 UTC
AFAIK jdev has own ProxySelector in ProxySettingsPanel, it's different than NB ProxySelector. Close as wontfix?
Comment 2 Marian Mirilovic 2012-09-04 12:56:59 UTC
(In reply to comment #1)
> AFAIK jdev has own ProxySelector in ProxySettingsPanel, it's different than NB
> ProxySelector. Close as wontfix?

I think so, reopened original bug and forwarded to jDev
Comment 3 Jiri Rechtacek 2012-09-06 18:22:31 UTC
On 09/06/2012 07:50 PM, Ron Widyono wrote:
> Yes, this reproduces with NetBeans 7.2
> Under NetBeans->Preferences...->General->Proxy Settings, hover over "Use 
> System Proxy Settings".  The tooltip which shows the system proxy 
> setting is:
> 
> "www-proxy.us.oracle.com www-proxy.us.oracle.com:80 80"
> 
>          http_proxy_host=`/usr/bin/grep HTTPProxy ${scutil_out} | 
> /usr/bin/awk '{print $3}' | /usr/bin/awk '{print $NF}'`
>          http_proxy_port=`/usr/bin/grep HTTPPort ${scutil_out} | 
> /usr/bin/awk '{print $3} ' | /usr/bin/awk '{print $NF}'`
Comment 4 rwidyono 2012-09-06 22:16:24 UTC
The JDeveloper solution is:

            http_proxy_tmp="PAC `/usr/bin/grep ProxyAutoConfigURLString ${scutil_out} | /usr/bin/awk 'END{print $3}'`"

	http_proxy_host=`/usr/bin/grep HTTPProxy ${scutil_out} | /usr/bin/awk 'END{print $3}'`
	http_proxy_port=`/usr/bin/grep HTTPPort ${scutil_out} | /usr/bin/awk 'END{print $3} '`
Comment 5 Jiri Rechtacek 2012-09-10 11:45:39 UTC
*** Bug 217517 has been marked as a duplicate of this bug. ***
Comment 6 Jiri Rechtacek 2012-09-10 15:39:13 UTC
http://hg.netbeans.org/core-main/rev/1bc02dc7a71c
Comment 7 Quality Engineering 2012-09-12 02:12:32 UTC
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1bc02dc7a71c
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #217598: PROXYSETTINGS DO NOT WORK ON MAC WITH JDK 1.7U4
Comment 8 Jiri Rechtacek 2012-10-18 12:38:16 UTC
*** Bug 220279 has been marked as a duplicate of this bug. ***