Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325905

Summary: [Net] Proxy problem requested a separate bug from 318969
Product: [Eclipse Project] Platform Reporter: Graeme Vetterlein <graeme.eclipse>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: remy.suen, wojciech.galanciak
Version: 3.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Attachments:
Description Flags
eclsipe.log (via export) none

Description Graeme Vetterlein CLA 2010-09-21 16:47:24 EDT
Build Identifier: M20090917-0800

As requested in https://bugs.eclipse.org/bugs/show_bug.cgi?id=318969

Running on a machine with no direct INTERNET access, a proxy at port 3128 must be used.

1: Set Preferences->network Connections to Direct:

   1a: Attempt to Install new Software 
       Fails with no repository @  http://download.eclipse.org/releases/galileo/
       (this seems correct as you need a proxy to leave my site)

   1b: Choose Help->contents

       I get an error:

       	 ERROR
	 The requested URL could not be retrieved

	 While trying to retrieve the URL: http://127.0.0.1:47463/help/index.jsp 

	 (This error comes from my Proxy ...so despite setting 'Direct' it is using the Proxy
	   to get to the help page)


2: Set Preferences->network Connections to Manual:

   In Manual Configure http, https and sock to use my proxy on port 3128
   (NB there is a 4th entry which is also set to my proxy which has no Tick mark
    and cannot be deleted)
    Bypass proxy set to localhost & 127.0.0.1  (default values)

    2a: Attempt to Install new Software 
       Changes to Pending ....Eclipse hangs.
       Had to force quit ... on restart unable to open workspace ... create new workspace & open

    2b: Choose Help->contents
    	Same error (from my proxy)

3:  Set Preferences->network Connections to Native:
    (at this point the 4th entry above gets selected)

    3a: Attempt to Install new Software 
        Offers a reasonable set of downloadable software (ie it works)       

    3b: Choose Help->contents
        Same error from proxy

4: Edit Ubuntu -> System -> Preference ->
     Original contents were:
     	      Manual , uses same proxy for all protocols ...My proxy name , port 3128
 	      Ignored hosts  localhost  127.0.0.0/8  *.local  *.home

     Amend this to add 127.0.0.1 to the end of this list (due to Eclipse not recognising CIDR)
     (still using 'Native' in Eclipse)

     4a: Install Software ... offers a full list (ie it works)
     4b: Choose Help->contents
         Same error from proxy

5: Leaving Ubuntu setting in place, Set  Eclipse Preferences->network Connections to Manual:

      5a: Attempt to Install new Software 
          Changes to Pending ....However Eclipse does NOT hang and it's possible to cancel

      5b: Choose Help->contents
         Same error from proxy

6: Leaving Ubuntu setting in place, Set  Eclipse Preferences->network Connections to Direct:

      6a: Attempt to Install new Software 
       Fails with no repository @  http://download.eclipse.org/releases/galileo/
       (this seems coorrect as you need a proxy to leave my site)
          
      6b: Choose Help->contents
         Same error from proxy




Reproducible: Always

Steps to Reproduce:
1.Given in description ... many ways to produce
2.
3.
Comment 1 Wojciech Galanciak CLA 2010-10-04 06:50:51 EDT
In bug 318969 description you mentioned that you have found a workaround (adding 127.0.0.1 to your bypasses in ubuntu settings) but in this bug I cannot find a case where it works. Could you provide information about usecase where you apply this workaround successfully?

I understand that you see only one native entry - for which protocol is it and what is a source (from description in table)?
Comment 2 Graeme Vetterlein CLA 2010-10-08 14:25:44 EDT
Following the long series of tests above. On shutting the system down some while
later there appeared to be various 'hung' Eclipse Processes (probably step2
where Eclipse Hung)

This means some of the effects above  may be artifacts of the 'hang'

...I will just use the Help->Contents test here as it shows the problem.

7: Set Preferences->network Connections to Native:
    At this point in Ubuntu -> System -> Preference ->
    the ignored host setting are:

    localhost
    127.0.0.0/8
    *.local
    *.home
    127.0.0.1   <---- NB this is one I added during previous testing

    7a: Choose Help->contents
        Error from proxy :

	The requested URL could not be retrieved

	While trying to retrieve the URL: http://127.0.0.1:47496/help/index.jsp

	The following error was encountered:

	    * Connection to 127.0.0.1 Failed 

8: In  Ubuntu -> System -> Preference ->
       Remove entry 127.0.0.0/8  (this is no use in real world as this needed)

      8a: Choose Help->contents
      Same error from proxy


9: Set Eclipse setting back  to:

   Manual 3 protocols ticked http, https, socks all point at my proxy (using IP address) port 3128
   Proxy bypass localhost and 127.0.0.1

      9a: Choose Help->contents
      Same error from proxy

10: Set Eclipse setting to DIRECT

      10a: Choose Help->contents
      Same error from proxy

OK, so I can't get my 'workaround' to work  ...it going to the proxy in all cases for a local file
even though Eclpse settings say "Direct"

Tried cutt&pasting the URL into firefox:

      http://127.0.0.1:40667/help/index.jsp

This works fine and displays nice help page. (Firefox has local proxy settings)


11: In Ubuntu -> System -> Preference -> set DIRECT NETWORK CONNECTION
    (so now both Eclipse & Ubuntu setting are Direct)

      11a: Choose Help->contents
      Same error from proxy

      11b: Restarted Eclipse ... same error

12: At bash prompt type "env | grep -i http"

    Output:
    http_proxy=http://10.116.0.253:3128/


13: Stop eclipse.
    13a: start bash
    13b: in bash unset http_proxy
    13c in bash type /usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh
    10b: Choose Help->contents
         lots of debug in bash screen ...then help is displayed !!!
Comment 3 Wojciech Galanciak CLA 2010-10-15 11:36:37 EDT
(In reply to comment #2)
> 7: Set Preferences->network Connections to Native:
>     At this point in Ubuntu -> System -> Preference ->
>     the ignored host setting are:
> 
>     localhost
>     127.0.0.0/8
>     *.local
>     *.home
>     127.0.0.1   <---- NB this is one I added during previous testing
> 
>     7a: Choose Help->contents
>         Error from proxy :
> 
>     The requested URL could not be retrieved
> 
>     While trying to retrieve the URL: http://127.0.0.1:47496/help/index.jsp
> 
>     The following error was encountered:
> 
>         * Connection to 127.0.0.1 Failed 

Have you started Eclipse after added 127.0.0.1 or it was working before? After any changes in env variables it is necessary to restart Eclipse.

> 8: In  Ubuntu -> System -> Preference ->
>        Remove entry 127.0.0.0/8  (this is no use in real world as this needed)
> 
>       8a: Choose Help->contents
>       Same error from proxy

It should not change anything.

> 9: Set Eclipse setting back  to:
> 
>    Manual 3 protocols ticked http, https, socks all point at my proxy (using IP
> address) port 3128
>    Proxy bypass localhost and 127.0.0.1
> 
>       9a: Choose Help->contents
>       Same error from proxy

Internal browser does not use Eclipse proxy settings so the result is correct that it did not have any affect.

> 10: Set Eclipse setting to DIRECT
> 
>       10a: Choose Help->contents
>       Same error from proxy

The same as in case 11.

> 11: In Ubuntu -> System -> Preference -> set DIRECT NETWORK CONNECTION
>     (so now both Eclipse & Ubuntu setting are Direct)
> 
>       11a: Choose Help->contents
>       Same error from proxy
> 
>       11b: Restarted Eclipse ... same error
> 
> 12: At bash prompt type "env | grep -i http"
> 
>     Output:
>     http_proxy=http://10.116.0.253:3128/

It may be a bug in GNOME that it does not change variables correctly. After step 11 have you opened new terminal for step 12?
 
> 13: Stop eclipse.
>     13a: start bash
>     13b: in bash unset http_proxy
>     13c in bash type /usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh
>     10b: Choose Help->contents
>          lots of debug in bash screen ...then help is displayed !!!

What were proxy settings in Eclipse?
Comment 4 Graeme Vetterlein CLA 2010-10-15 14:12:43 EDT
Created attachment 181000 [details]
eclsipe.log (via export)

Log captured at step 18 in description.
Comment 5 Graeme Vetterlein CLA 2010-10-15 14:14:48 EDT
Sorry if this comment appear twice, appeared to get lost as I added attachment: 

Following on from last session:

In a terminal (bash):


unset http_proxy
env | grep proxy  (no output)

14: /usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh

Eclipse Proxy settings read:

Active Provider [ Mnanual ]

Proxy Entries:   (nb all lines are ticked)

HTTP   <my proxy IP>	3128	Manual false
HTTPS  <my proxy IP>	3128	Manual false
SOCKS  	   	 		Manual false

Proxy bypass:
localhost	Manual
127.0.0.1	Manual

Help -> help Contents

Unhandled Event Loop exception
XPCOM error -2147467262

(click details)

Unhandled event loop exception
XPCOM error -2147467262

(click show error log)

System property https.proxyPort is not set but should be 3128 org.eclipse.core.net 15/10/2010 18:30
similar... for proxyPortHost 
These two line repeat, then
similar of http 
I can't scroll the messages or resize the message tab as the modal window seem to hold focus

...finally an SWT error has occured you are recommended to exit ...


15: /usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh
Set proxy to Direct

Help -> help Contents

Unhandled Event Loop exception
XPCOM error -2147467262

... same messages about port 3128 ... curious as that is no longer set

16: /usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh
Set proxy back to manual , but not set port to 666 (which is not valid)

exit eclispe
 
back in
/usr/local/eclipse-3.6/eclipse/eclipse-gtk.sh

verify port is set to 666


Help -> help Contents

Same error , but now reports port 666



17: set proxy to Native , exit and reenter Eclipse


Same error , reports port 666



Looks like I've broken somthing in the process of trying all these debugging options



18: OK ... really getting really wierd now:

    set port back to 3128 , proxy to manual
    went to install new software (all locataions)  ... produced a  reasonable list of software (did not instal anything)
    did help->help-contents
    A good help window displayed ... IN THE FIREFOX BROSWER I had open to review this bug
    Came back to Eclipse Window and display showed: 


    Unhandled event loop exception
    + Similar errors to before ...this time I was able to export the log (will attach)
Comment 6 Lars Vogel CLA 2019-11-14 03:06:27 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.