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

Bug 367600

Summary: Finish button is enabled even when specifying wrong directory
Product: [WebTools] WTP ServerTools Reporter: Ivan <newcastle7>
Component: jst.serverAssignee: jst.server <jst.server-inbox>
Status: NEW --- QA Contact: Elson Yuen <eyuen7>
Severity: normal    
Priority: P3 CC: newcastle7
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan CLA 2011-12-28 09:39:25 EST
Build Identifier: Version: Indigo Service Release 1; Build id: 20110916-0149

When there is a new Server type created with the usage of a *.serverdef file and the extension point "org.eclipse.wst.server.ui.wizardFragments", if there is a property of type "directory", the button "Finish" of the New Server and New Server Runtime Environment wizard is enabled even if we specify wrong directory. It happens in both cases: runtimes and server instances (org.eclipse.jst.server.generic.ui.internal.GenericServerRuntimeWizardFragment & org.eclipse.jst.server.generic.ui.internal.GenericServerWizardFragment).

Reproducible: Always

Steps to Reproduce:
1. Create a new runtime type.
2. Use the approach with generics and server definition file (*.serverdef file and org.eclipse.jst.server.generic.ui.internal.GenericServerRuntimeWizardFragment class of the extension point="org.eclipse.wst.server.ui.wizardFragments" for the runtime fragment:
<extension
         point="org.eclipse.wst.server.ui.wizardFragments">
      <fragment
        id="org.eclipse.jst.server.generic.runtime"
        typeIds="my.runtime.type"
        class="org.eclipse.jst.server.generic.ui.internal.GenericServerRuntimeWizardFragment"/>           
   </extension>
3. Have at least one property of type "directory":
<property id="RootDirectory"
		label="Installation directory" type="directory"
		context="runtime" default="C:/MyServer" />
4. When you use the New Server Runtime Environment wizard to add your type of runtime you've defined, if you specify a wrong directory, e.g. C:/NotExisting, in the text-field generated on your property ("RootDirectory"), you will see the message "C:/NotExisting is not valid". Nevertheless button "Finish" stays enabled thus the user is able to create a new runtime with wrong directory.

* it is the same issue with the New Server Wizard when creating a new server instance