Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334026

Summary: Installing software after patch requires old metadata
Product: [Eclipse Project] Equinox Reporter: Andrew Niefer <aniefer>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Andrew Niefer CLA 2011-01-11 14:30:36 EST
After a patch has been applied, the planner/resolver appears to require the metadata for the old version of the patched bundle before new software can be installed even though that old version will not be part of the solution.

Steps:
1) Start with Eclipse 3.6.1
2) Using the repo attached to bug 332164 (https://bugs.eclipse.org/bugs/attachment.cgi?id=184811) install "RCP Patch V2" (uncheck group items by category)

3) Restart -> Install new Software.  
4) Uncheck "Contact all update sites during install to find required software".
5) Install Eclipse EGit from http://download.eclipse.org/egit/updates-nightly

-> Operation cannot be completed : 
Cannot complete the install because one or more required items could not be found.
  Software currently installed: Eclipse SDK 3.6.1.M20100909-0800 (org.eclipse.sdk.ide 3.6.1.M20100909-0800)
  Missing requirement: toolingorg.eclipse.equinox.launcher 1.1.0.v20100507 requires 'bundle org.eclipse.equinox.launcher [1.1.0.v20100507]' but it could not be found
  Cannot satisfy dependency:
    From: Eclipse Product Configuration 1.0.0.M20100909-0800 (org.eclipse.rcp.configuration.feature.group 1.0.0.M20100909-0800)
    To: toolingorg.eclipse.equinox.launcher [1.1.0.v20100507]
  Cannot satisfy dependency:
    From: Eclipse SDK 3.6.1.M20100909-0800 (org.eclipse.sdk.ide 3.6.1.M20100909-0800)
    To: org.eclipse.rcp.configuration.feature.group [1.0.0.M20100909-0800]

6) Press Back, Select Contact all update sites, then next.  A solution is now found.  

The found solution does not actually require org.eclipse.equinox.launcher_1.1.0.v20100507 because of the previously installed patch, however the metadata for v20100507 needed to be present for the solution to be found.
Comment 1 Andrew Niefer CLA 2011-01-11 14:31:55 EST
Note that this is a problem when trying to install new software using the dropins reconciler because the metadata for the old version of the patched bundle is not present in the profile and will not be in the generated metadata for the dropped in bundles.
Comment 2 Lars Vogel CLA 2019-09-24 13:50:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.