| Summary: | Wizard from ApplyPatchOperation does not skip the patch selection page. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Eugene Kuleshov <ekuleshov> |
| Component: | Team | Assignee: | Michael Valenta <Michael.Valenta> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | mik.kersten |
| Version: | 3.3 | ||
| Target Milestone: | 3.3 M4 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 103932 | ||
|
Description
Eugene Kuleshov
What is ISource? Do you mean IStorage? I'm also not sure what you mean by "But I can't find this login neither in ApplyPatchOperation, nor in PatchWizard or its pages". Anyway, I should be able to find the time to look at this this week so a fix can get into 3.3 M4. (In reply to comment #1) > What is ISource? Do you mean IStorage? Yes, sorry. It should be IStorage.getContent() > I'm also not sure what you mean by "But I can't find this login > neither in ApplyPatchOperation, nor in PatchWizard or its pages". Another typo. Please read that as "...can't find this logic..." > Anyway, I should be able to find the time to look at this this week so a fix > can get into 3.3 M4. Thanks. I hoped to make this for Mylar 1.0, but it doesn't look very realistic now... I gave this a try a while back and came up against the problems that Eugene has summarized, apologies that I did not comment but I did not have time to verify whether there was a work-around and thankfully Eugene picked this up. Eugene: his has to wait post 1.0 since we froze new features with 0.9.1, but I do realize that it would be helpful for a lot of people. Fix released to HEAD. The patch selection page is now skipped if a patch is provide and IStorage#getContents() is used. The javadoc was changed to indicate that the target page is displayed even if a target is provided as this has always been the behaviour of the wizard. Excellent! Eugene: unless you indicate otherwise I assume you'll give this a whirl on bug 103932, and hopefully we can get it out when we do our 3.3M4 based release. Verified Verified to support Mylar bug 103932, which involved putting patch contents from a bug report into an IStorage in the following way: IStorage storage = new IStorage() { public InputStream getContents() throws CoreException { return new StringBufferInputStream(contents); } ... } By the way, Michael, current PatchWizard is reading full path from IStorage that contains patch. See line 123: fPatcher.setName(patch.getFullPath().toString()); It forced us to provide some bogus full path (else getting a NPE exception if patch.getFullPath() returns null), because we don't have any file laying around with patch content. I looked around and that full path value doesn't seem used after that. So, you probably should remove that call to getFullPath() Could you log a separate bug report for that please? (In reply to comment #9) > Could you log a separate bug report for that please? Done. Bug 168947 |