| Summary: | IllegalArgumentException when trying to delete a Server from server definitions | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Elson Yuen <eyuen7> | ||||
| Component: | wst.server | Assignee: | Steven Hung <sghung> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sghung | ||||
| Version: | 3.3 | Flags: | eyuen7:
review+
|
||||
| Target Milestone: | 3.3.2 P | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 371828 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Elson Yuen
This defect is to port changes on bug 371828 to 3.3.2 patch stream. Created attachment 212175 [details]
Patch 1.0
Ported change to R3_3_maintenance and ran testing as described below.
org.eclipse.wst.server.ui.internal.view.servers.GlobalDeleteAction.deleteServer(IServer)
will check to see if the server to delete is null. If it is, it will call
org.eclipse.wst.server.ui.internal.view.servers.GlobalDeleteAction.selectionChanged(IStructuredSelection)
to populate the server variable. This extra check ensures that even if no
selectionChanged event has occurred, that the server to delete will still be
initialized.
Tests run:
1. Have a server adapter which automatically adds server to server view, right
click on the server to delete, and ensure a delete works without any errors and
actually deletes from view (the original reported issue)
2. Have a server adapter which automatically adds server to the server view,
left click on the server to get focus, right click on the server to delete, and
ensure a delete works without any errors and actually deletes from view
3. Launch a workspace where a server is not added automatically, add a new
Tomcat server, right click to delete, and ensure deletion of both servers works
without any errors and are removed from the view
4. Launch a workspace where two servers already exist, right click on both
servers, right click to delete, and ensure deletion of both servers works
without any errors and are removed from the view
5. Use the delete key instead of right click for tests 1-2, ensure deletion
occurs without any errors and are removed from the view
Code changes is fine. Changes released to 332P on 20120307 |