Community
Participate
Working Groups
Test Connection does not permit host names with underscore characters. Steps to reproduce: 1) Open the hosts file (http://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system) 2) Add the following: <current IP address> mymachine_1 3) Click the Test Connection button for locations in the Test Navigator, location editor, and Windows >> Preferences >> Test preference page and note the 'Invalid host name or IP address' error dialog. Note, the Test Connection button in the Windows >> Preferences >> Agent Controller >> Hosts preference page is successful. Note, the TPTP test types will execute successfully when using a host name with an underscore character. The symptom is caused by the org.eclipse.hyades.test.ui.internal.util.TestUIUtilities.isValidHostName(String) method that validates hostnames/IPv4/IPv6 addresses based on RFC 1123/RFC 952, does not permit underscore characters. Although underscore characters are technically not permitted in host names, DNS names and Microsoft Windows hostnames may contain underscore characters (see http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names).
Jerome, please review. A new test suite (/org.eclipse.hyades.test.ui.navigator.tests/junit_plugin/Test.UI.TestUIUtilitiesTest.testsuite) has been added to the TPTP Test Project test bucket and http://wiki.eclipse.org/TPTP_Test_Tools_Project_Tests#JUnit_Plug-in.
Created attachment 181843 [details] Patch.
reviewed and approved Thanks Paul
Patched delivered to CVS (HEAD).
Verified in TPTP-4.7.2-201011011900. Closing.