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.
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)
AFAIK jdev has own ProxySelector in ProxySettingsPanel, it's different than NB ProxySelector. Close as wontfix?
(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
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}'`
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} '`
*** Bug 217517 has been marked as a duplicate of this bug. ***
http://hg.netbeans.org/core-main/rev/1bc02dc7a71c
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
*** Bug 220279 has been marked as a duplicate of this bug. ***