Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 165310 - [Vista] Recording fails on Windows Vista.
Summary: [Vista] Recording fails on Windows Vista.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Mark D Dunn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 163254
  Show dependency tree
 
Reported: 2006-11-21 09:02 EST by Ernest Jessee CLA
Modified: 2016-05-05 10:31 EDT (History)
8 users (show)

See Also:


Attachments
Patch for HTTP recorder to fix localhost problem (5.92 KB, text/plain)
2007-01-11 15:28 EST, Mark D Dunn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernest Jessee CLA 2006-11-21 09:02:16 EST
Recording fails on Windows Vista.  IE7 fails as if there is no network.  Firefox fails with the complaint:  "The proxy server is refusing connections".
Comment 1 Kent D Siefkes CLA 2006-11-21 11:04:43 EST
Changed severity to blocker (on Vista platform)since without recording capability, URL Test in TPTP and any consuming product that uses the HTTP recorder to generate tests is pretty much non-functional.

It is recognized of course that Windows Vista is not a supported platform for 4.2.1, but it is a target platform being seriously considered for tolerance by Eclipse 3.2.2 (which TPTP 4.2.2 would align with), and Vista support in Eclipse and the other Eclipse projects such as TPTP is needed for consuming products to support Windows Vista.  This defect should be targeted to the first TPTP release for which Vista tolerance is targeted.
Comment 2 Paul Slauenwhite CLA 2006-11-22 10:53:31 EST
Since 4.2.2 does not support Vista, decreasing to a critical severity.  Moving forward, TPTP will be looking at the cost to adding Vista as a supported platform for 4.2.2/4.4.

Mark: Please provide a rough sizing for this defect?  
Comment 3 Mark D Dunn CLA 2006-12-11 17:51:46 EST
We found the source of the problem. The recorder calls regedit to modify the registry settings, and tells the browser to send all its HTTP traffic to "localhost" on port 1080 (where the Recorder is listening. 

The hosts file (C:\windows\system32\drivers\etc\hosts) on Vista has two entries in it for localhost, one specifying the IPv4 address and the other specifying the IPv6 address (see below).  No matter which order they are found in the hosts file, when you ping localhost, it always uses the IPv6 address.  

::1             localhost
127.0.0.1       localhost

When I modified the hosts file and commented out the IPv6 address for localhost, the recorder worked fine.  

Another option could be employed in which the user would not have to edit the hosts file.  In this case, the user could set the 'application to record' to 'NONE', and manually configure Internet Explorer to point to 127.0.0.1 (rather than 'localhost') and port 1080.  I have tested this and it works as well.  

All the testing we have done so for on Vista was done with the User Access Controls (UAC) turned off.  We must perform the same testing with the UAC turned on and see if this causes any additional problems.  
Comment 4 Paul Slauenwhite CLA 2006-12-12 07:57:03 EST
(In reply to comment #3)

Great work Mark, Joe and Duwayne!

What exactly is the problem with the IPv6 address?  Is the issue that the URL recorder does not support IPv6 addresses?
Comment 5 DuWayne Morris CLA 2006-12-12 12:59:17 EST
Hi Paul,

We just open a socket and do not go out of our way to use V6 or find out if it's available on the system.

After some research, I found that Vista installs IPV6 by default, it is active by default, and cannot be uninstalled (although it can be de-activated on a given network adapter manually, probably a bad thing to do).  On Windows XP SP2, IPV6 is available and can be installed as an added protocol to each of the network connections.

With IPV6 installed on XP, the same problem exists, except that commenting out the IPV6 localhost entry in the hosts file does not work, instead must modify the proxy setting on IE7 to use 127.0.0.1.

Here is a link to some interesting JVM documentation regarding v6:
http://java.sun.com/j2se/1.4.2/docs/guide/net/ipv6_guide/#ipv6-networking

I agree with Tom Arman's notion that this problem shouldn't be there, that if both entries exist, the OS and/or IE should be trying both entries in the host table before giving up.  So, I'm not sure if the problem is in IE or the protocol adapters.

In any case, since V6 is active for Vista, it would not be surprising to find other Vista issues lurking in TPTP land.

Comment 6 Paul Slauenwhite CLA 2006-12-14 07:30:58 EST
(In reply to comment #5)

Thanks Duwayne.

This is more evidence that we need to complete a full test pass before we start 4.2.2 development to uncover anymore defects.

I am assuming you were using TPTP 4.2.1.1 and Eclipse 3.2.1 for your testing?
Comment 7 Paul Slauenwhite CLA 2006-12-14 14:35:17 EST
(In reply to comment #6)

When we are testing on Vista with TPTP 4.2.1.1, we should be using the lated 3.2 build (targeted as 3.2.2) which is the base for TPTP 4.2.2.

Comment 8 Paul Slauenwhite CLA 2006-12-21 11:00:07 EST
[Duwayne Morris]
This should be fixed in 4.2.2.  The fix has already been determined and can be implemented quickly (change to "127.0.0.1" versus "localhost" as the proxy string in the IE registry).  A more sophisticated fix might be considered for 4.4.  
Comment 9 Mark D Dunn CLA 2007-01-11 15:28:29 EST
Created attachment 56798 [details]
Patch for HTTP recorder to fix localhost problem
Comment 10 Mark D Dunn CLA 2007-01-15 09:51:54 EST
Checked in the fix for this defect on Friday, Jan 12 after testing on Linux and Windows using all supported browsers, recording directly or through a proxy.  Plan to file new defects to merge this change into other branches.
Comment 11 Paul Slauenwhite CLA 2007-01-15 10:01:01 EST
Please use this defect to check-in to 4.3.1 and 4.4 (HEAD).
Comment 12 Paul Slauenwhite CLA 2007-01-15 12:26:29 EST
Approval request:

http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg02847.html
Comment 13 Mark D Dunn CLA 2007-01-16 15:05:58 EST
This has already been checked into tptp 4.4 and 4.3.1 as well as 4.2.2 under this defect number.
Comment 14 Paul Slauenwhite CLA 2007-06-02 14:51:09 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 15 Ernest Jessee CLA 2008-05-21 10:17:44 EDT
verified.