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 195662 - NbProxySelector is broken in NB7.0beta2 for non-http PAC URL
Summary: NbProxySelector is broken in NB7.0beta2 for non-http PAC URL
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 15:37 UTC by _ rkubacki
Modified: 2011-02-22 05:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.69 KB, text/plain)
2011-02-18 15:37 UTC, _ rkubacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2011-02-18 15:37:31 UTC
Created attachment 106161 [details]
stack trace

Product Version: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
Java: 1.6.0_22; Java HotSpot(TM) Server VM 17.1-b03
System: Linux version 2.6.35-25-generic running on i386; UTF-8; en_US (nb)

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

My proxy settings in Tools | Options was set to use system settings. There is no proxy set in the system and I have direct connection to the internet. Yet the IDE fails to connect to JIRA, to file a bug report about failing HTTP(S) connection and my build that downloads some resources fails too as it inherits the context of this proxy selector.
Comment 1 Jiri Rechtacek 2011-02-18 15:46:22 UTC
I'll care about this. Radim, could you attach your messages.log to show what was detected from the system? Thanks
Comment 2 _ rkubacki 2011-02-18 16:06:27 UTC
Wow, that's funny. Proxy Switchy plugin in my Chrome sets up some proxy on my machine.

        -Dnetbeans.system_http_proxy=PAC
        file:///home/radim/.config/google-chrome/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/1.6.3_0/plugins/SwitchyAuto.pac?1297787703742

The content is:

function regExpMatch(url, pattern) {
        try { return new RegExp(pattern).test(url); } catch(ex) { return false; }
}

function FindProxyForURL(url, host) {
        if (shExpMatch(url, '*pandora.com*')) return 'PROXY 98.206.42.228:3128';
        return 'DIRECT';
}

(just some random proxy with US address to be able to listen to Pandora).
Comment 3 Jiri Rechtacek 2011-02-18 16:11:09 UTC
It's funny, anyway needed to make NbProxySelector more rebust for cases like this.
Comment 4 Jiri Rechtacek 2011-02-21 14:15:29 UTC
fixed core-main/rev/3ce7a90239a8
Comment 5 Quality Engineering 2011-02-22 05:24:58 UTC
Integrated into 'main-golden', will be available in build *201102220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3ce7a90239a8
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #195662 : making NbProxySelector more robust for non-http PAC files