Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367600 - Finish button is enabled even when specifying wrong directory
Summary: Finish button is enabled even when specifying wrong directory
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jst.server CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-28 09:39 EST by Ivan CLA
Modified: 2011-12-28 09:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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