| Summary: | Finish button not disabled when no entries selected | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Kaitlin Duck Sherwood <kate.sherwood> | ||||
| Component: | wst.server | Assignee: | Steven Hung <sghung> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||
| Severity: | trivial | ||||||
| Priority: | P3 | CC: | cbridgha | ||||
| Version: | unspecified | Flags: | eyuen7:
pmc_approved?
(david_williams) eyuen7: pmc_approved? (raghunathan.srinivasan) eyuen7: pmc_approved? (naci.dai) eyuen7: pmc_approved? (neil.hauge) eyuen7: pmc_approved? (kaloyan) cbridgha: pmc_approved+ eyuen7: review+ |
||||
| Target Milestone: | 3.4.1 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| See Also: | https://git.eclipse.org/r/109120 | ||||||
| Whiteboard: | pmc_approved | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 390692, 390693 | ||||||
| Attachments: |
|
||||||
|
Description
Kaitlin Duck Sherwood
Created attachment 216956 [details]
Patch v1.0
The NewRuntimeWizardFragment did not override the isComplete method. As a result, even when nothing was selected or something invalid was selected, the wizard always had the "Finish" button enabled. The fix ensures the isComplete method is implemented and checks for a valid selected runtime.
1. Create different runtimes to ensure that the wizard shows the "Next" and "Finish" buttons correctly. Created Apache Tomcat v6.0, Apache Tomcat v7.0, HTTP Preview, J2EE Preview, and J2EE Runtime Library runtimes and ensured that the "Next" and "Finish" buttons were enabled properly
2. Tested selecting an invalid runtime, such as the folder "Apache" or "Basic". Ensured that the "Finish" button is not enabled as it was before the fix
3. Tested adding gibberish into the filter text, such as "asdf" or "" (empty string). Ensured that the "Finish" button is not enabled as it was before the fix
4. A runtime from another non-WTP adapter
Patch looks good. Thanks for submitting the patch. Code released to 3.5 WTP 3.4.1 PMC candidate * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. This issue is not a stop-ship defect, but it is a usability issue, since it fails silently when the user clicks finish and it can be confusing that the finish button is enabled when an invalid runtime is selected. * Is there a work-around? If so, why do you believe the work-around is insufficient? There is no workaround, because the wizard's validation should be preventing the user from selecting invalid runtimes and finishing the wizard. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? 1. Create different runtimes to ensure that the wizard shows the "Next" and "Finish" buttons correctly. Created Apache Tomcat v6.0, Apache Tomcat v7.0, HTTP Preview, J2EE Preview, and J2EE Runtime Library runtimes and ensured that the "Next" and "Finish" buttons were enabled properly 2. Tested selecting an invalid runtime, such as the folder "Apache" or "Basic". Ensured that the "Finish" button is not enabled as it was before the fix 3. Tested adding gibberish into the filter text, such as "asdf" or "" (empty string). Ensured that the "Finish" button is not enabled as it was before the fix 4. A runtime from another non-WTP adapter * Give a brief technical overview. Who has reviewed this fix? The NewRuntimeWizardFragment did not override the isComplete method. As a result, even when nothing was selected or something invalid was selected, the wizard always had the "Finish" button enabled. The fix ensures the isComplete method is implemented and checks for a valid selected runtime. The fix has been reviewed by Elson Yuen. * What is the risk associated with this fix? Low, since validation has been added to prevent the user from finishing the new runtime wizard when an invalid runtime is selected. thanks approved Code released to 3.4.1 New Gerrit change created: https://git.eclipse.org/r/109120 |