| Summary: | internal error when path variable removed from under a link | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jim des Rivieres <jeem> |
| Component: | Resources | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | dj.houghton, knut_radloff |
| Version: | 2.1 | ||
| Target Milestone: | 2.1 M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jim des Rivieres
Fixed and released. New test added in LinkedResourceWithPathVariableTest.java. Reopening. The fix was wrong. I was simply aborting the refresh when encountering a linked resource with undefined path variable. The desired behaviour is: - Delete all children of the linked resource from the tree - Leave the linked resource itself intact in the tree - Throw an exception saying that refresh encountered a resource whose location could not be determined. Released a real fix. Resources with a null location are now treated as deletions by refresh local. Linked resources will stay, but their children will disappear. I'm holding off on throwing an exception from refresh local, as I recall this has caused problems in the past for a number of callers of refresh local. We'll see how it plays without an exception for now... adding an error marker to these linked resources is another possibility. |