| Summary: | [context] remove from context doesn't get the children of a non-java project | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Shawn Minto <shawn.minto> | ||||||||||
| Component: | Mylyn | Assignee: | Shawn Minto <shawn.minto> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | critical | ||||||||||||
| Priority: | P2 | CC: | robert.elves | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | 2.3 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Shawn Minto
Created attachment 84753 [details]
patch
Here is a simple patch that fixes this problem. I have not included any tests or anything as I am unsure if this is the correct approach to take.
Created attachment 84754 [details]
mylyn/context/zip
Shawn: this changes the way Mylyn has always behaved in this respect, right? I wonder if it should wait until 2.3 since this is a pretty major change. This is a pretty major change, but if a user has a project other than a java project (e.g. a feature project), and they attempt to remove from their context, the project is removed, but all of the children are left. This can be a privacy concern if the user thinks that this information is gone, but it really isn't, and then shares the context publicly. Raising priority due to privacy concerns. Shawn: I have applied the patch and all looks good, although note my comment in the code. Could you provide a simple test case, and consider whether this handling can happen with a test instead of in the catch block? Created attachment 90491 [details]
Test case patch
Here is a test case for this. I have also fixed up the other tests in the class and re-added it to the all java tests. I don't think that I am able to do anything other than using the exception handling since the object created is a java project and only when the structure bridge tries to get the children does it throw an exception. If you have any ideas what else could be done to make this more robust I am willing to re-implement my patch.
Created attachment 90492 [details]
mylyn/context/zip
Patch applied. Great stuff Shawn. |