| Summary: | [ui] deal more gracefully with a null plan in a failed resolution | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Peter Nehrer <pnehrer> | ||||
| Component: | p2 | Assignee: | Susan McCourt <susan> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | pascal | ||||
| Version: | 3.6 | Flags: | pascal:
review+
|
||||
| Target Milestone: | 3.6 RC1 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Peter Nehrer
The underlying problem is also described in bug 311338 (underlying error is the same). Keeping this bug open and retitling to catch the error on the UI side a little earlier. It is indeed an "unexpected error" from the UI point of view, but we could detect this a little earlier with a better error than assertion failed. (Note to self: check for null plan in PlannerResolutionJob.getResolutionResult()) Created attachment 167014 [details] patch to PlannerResolutionJob This patch ensures that if there is a null plan at the time a resolution result is requested, that a proper status is returned. The patch can be tested by trying to install anything from http://download.eclipse.org/releases/staging (without the patch for bug 311338 loaded). Before the patch, you get the IAE in the error dialog (that is bug 311338). The problem on the UI side is that the wizard still has the next button enabled and pushing the next button gives you an assertion error in the log. The wizard at that point is broken unless you select something new. After the patch, you still get the IAE in the error dialog, but now the next button is disabled as it would be for any failed resolution, and the error message shows as: Your original request has been modified. Unexpected Error. Could not process the request. Check the error log for details. Pascal, can you please review this patch? Note that you have to test it *without* the patch for bug 311338 loaded. This patch ensures that if any other runtime exceptions were to occur during planning, that the wizard catches the null plan and reports the status back to the user rather than being broken. Patch released. |