Bug 124539 - The feature model includes disabled feature
Summary: The feature model includes disabled feature
Status: RESOLVED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 188746
Blocks:
  Show dependency tree
 
Reported: 2006-01-19 15:33 EST by Pascal Rapicault CLA
Modified: 2011-06-08 17:32 EDT (History)
4 users (show)

See Also:
wassim.melhem: review+
baumanbr: review+
dejan: review+


Attachments
org.eclipse.pde.core.patch (3.05 KB, patch)
2007-05-20 21:11 EDT, Chris Aniszczyk CLA
no flags Details | Diff
org.eclipse.update.configurator.patch (4.64 KB, patch)
2007-05-22 23:55 EDT, Chris Aniszczyk CLA
no flags Details | Diff
uber.patch (7.93 KB, patch)
2007-05-23 10:41 EDT, Chris Aniszczyk CLA
no flags Details | Diff
org.eclipse.pde.core.patch (3.27 KB, patch)
2007-06-01 20:34 EDT, Chris Aniszczyk CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2006-01-19 15:33:46 EST
I20060117
I updated (using update manager) my eclipse intall to a more recent build. On disk I now have multiple copies (with different versions) of the same feature.

Now when I'm creating a feature and try to add an included feature, the feature selection dialog shows features that are disabled from an update point of view.
Comment 1 Chris Aniszczyk CLA 2007-05-20 21:11:09 EDT
Created attachment 67929 [details]
org.eclipse.pde.core.patch
Comment 2 Chris Aniszczyk CLA 2007-05-20 21:19:00 EDT
Ok, here is a patch. First, when we were looking for configured site paths, we were scanning the base directory with no regard to the status of feature or plug-in. Next, when we were building the locations of configured site paths, we had an un-necessary if clause, instead we should be resolving the urls using FileLocator to get an absolute location.

In the end, this patch simply grabs all the configured features (which is what is listed in the platform.xml)
Comment 3 Chris Aniszczyk CLA 2007-05-20 22:12:02 EDT
hold off on reviewing patch, it doesn't work in cases when your target platform isn't the same as your host.
Comment 4 Chris Aniszczyk CLA 2007-05-22 23:55:38 EDT
Created attachment 68273 [details]
org.eclipse.update.configurator.patch

try this patch out for now Wassim and tell me the results. I'm sleepy tonight.
Comment 5 Wassim Melhem CLA 2007-05-23 01:36:41 EDT
Chris, I presume you want me to try the pde.core patch AND the update.configurator patch.

I tried the host != target test case.
I am now getting the right list of plug-ins.  Unfortunately, they are all prefixed with the wrong path.

ie. I am getting the list of target bundles but they have the host's path as a prefix.
Comment 6 Chris Aniszczyk CLA 2007-05-23 10:41:42 EDT
Created attachment 68346 [details]
uber.patch

Here is an updated patch, I don't think I gave you the latest patch, I'm not seeing this problem.
Comment 7 Wassim Melhem CLA 2007-05-23 14:27:26 EDT
Patch works very well.  This patch also resolves the plug-in side of it (bug 175076), which is the more pressing issue than the features.

One suggestion:
PluginPathFinder#getConfiguredSitePaths(..) should merge with PluginPathFinder#getExtensionPluginURLs(..) though.  The latter also has an unfortunate name since it is also used to retrieve features.

Chris, can you open a bug about the Update issue and attach the patch?
Comment 8 Brian Bauman CLA 2007-05-24 11:38:27 EDT
+1.  Should we release the PDE portion of the patch before releasing the Update portion?  Just want to make sure we don't break anything with half a patch.
Comment 9 Wassim Melhem CLA 2007-05-24 11:39:35 EDT
Our half won't work without the Update half.
Comment 10 Chris Aniszczyk CLA 2007-06-01 20:34:36 EDT
Created attachment 69831 [details]
org.eclipse.pde.core.patch

updated patch
Comment 11 Brian Bauman CLA 2007-06-05 13:39:33 EDT
Adding Dejan as second component needed to approve this fix for RC4.
Comment 12 Chris Aniszczyk CLA 2007-09-27 10:23:27 EDT
moving back to the inbox

this may not be as important when p2 comes alive in 3.4
Comment 13 Brian Bauman CLA 2007-11-13 17:36:13 EST
Chris, with the fix from 141887, should we include this patch now?
Comment 14 Curtis Windatt CLA 2011-06-08 17:32:59 EDT
With the introduction of p2, this bug is not worth pursuing.  Closing as INVALID.