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 97650 - Can't connet to the server with a proxy.
Summary: Can't connet to the server with a proxy.
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 11:32 UTC by Peter Pis
Modified: 2008-12-22 10:50 UTC (History)
1 user (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 Peter Pis 2007-03-12 11:32:34 UTC
NetBeans IDE Dev (Build 200703111900)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

For CVS and SVN there is no way how to connect servers via PROXY.
Comment 1 Maros Sandor 2007-03-12 11:56:08 UTC
CVS does not handle proxying.
Comment 2 Jiri Rechtacek 2007-03-12 14:08:35 UTC
No info. INVALID.
Comment 3 Tomas Stupka 2007-03-12 14:22:45 UTC
cvs:
- does not handle proxying when connecting to a server - this is also an info

svn:
- manual proxy settings specified

the following code 
ProxySelector ps = ProxySelector.getDefault();
ps.select(new java.net.URI("http://some.server.behind.the.proxy.org"));        
    e.g svn.codehaus.org 

returns two proxies:
- the proxy manually specified
- an another instance with type == Type.DIRECT - i would say that this one is wrong


Comment 4 Tomas Stupka 2007-03-12 14:26:21 UTC
P1 as there is no workaround known yet
Comment 5 Jiri Rechtacek 2007-03-12 18:23:29 UTC
Works for me at:

>Log Session: Monday, March 12, 2007 6:08:02 PM GMT+01:00
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 070312)
  Operating System        = Linux version 2.6.17-11-386 running on i386
  Java; VM; Vendor; Home  = 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b04;
Sun Microsystems Inc.; /space/shared/java/jdk1.6.0_01/jre
  System Locale; Encoding = us (nb); UTF-8
  Home Dir.; Current Dir. = /space/home/jirka; /tmp/subversion-1.3.2

I see several problems here:
1) No UI support in Subversion client IDE. UI should handle cases when user
cannot svn repository and guide them to setup correctly proxy in Options dialog.
It's duplicate of issue 97478. It should be solved with high priority I'm guessing.

2) There is a bug in NbProxySelector, failed if the svn repository doesn't need
proxy. Also filed as issue 96183.

Ad two proxies. It is not a bug. NbProxySelector returns the manually specified
proxy at the first place, it's Ok. Beside this NbProxySelector delegates to the
default ProxySelector from JDK (it returns Direct in this case). But it doesn't
 matter.  In some cases it could help. I can try it and it fails again. Don't worry.
Comment 6 Jiri Rechtacek 2007-10-04 17:48:39 UTC
Worksforme.
Comment 7 Peter Pis 2008-01-18 09:52:53 UTC
Closing.