| Summary: | testRestrictedTelnetHost testcase failure on linux machine | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Thomas Watson <tjwatson> | ||||
| Component: | Framework | Assignee: | Lazar Kirchev <l.kirchev> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | kim.moir, l.kirchev | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Thomas Watson
Ok, disable it while I am trying to find another way to test this functionality. Does the test machine have an IP address different from 127.0.0.1? Because I tried to reproduce this problem on a Linux machine, but if there was actually an IP address, InetAddress.getLocalHost() returned this address. It returned 127.0.0.1 only if there was no other IP address configured on the machine. If this is the case the functionality could not be tested - it requires another IP in addition to 127.0.0.1. The workaround I suggest here is to check if the address, which InetAddress.getLocalHost() returns is 127.0.0.1, and if so - not to make any further checks. Created attachment 192921 [details]
Patch for the failing telnet test
Kim, could you tell us about the Linux test machine and its IP addresses (comment2)? The test machine is ejlnx1.ottawa.ibm.com. It has an internal IBM address. (In reply to comment #5) > The test machine is ejlnx1.ottawa.ibm.com. It has an internal IBM address. Then this seems strange. I thought that probably InetAddress.getLocalHost() returns always 127.0.0.1 on linux but when I tested it on a linux machine with an IP address, it returned the IP address, not 127.0.0.1. That is why I supposed that probably the test machine has no IP other than 127.0.0.1, but it now turns out that this is not the case. Probably the problem is in the configuration of the IP addresses? 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. -- The automated Eclipse Genie. This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag. |