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

Bug 198742

Summary: [eclipse] product id not cleared on uninstall
Product: [Eclipse Project] Equinox Reporter: DJ Houghton <dj.houghton>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: dstevens, jeffmcaffer, pascal.rapicault, pascal
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description DJ Houghton CLA 2007-08-02 16:55:12 EDT
- start agent
- install SDK into agent
- restart agent -> SDK app starts
- open Provisioning perspective -> cool
- select the agent profile and uninstall SDK
- restart agent

Get an error that the application ID cannot be found.

If you look at the config.ini, it still contains org.eclipse.sdk.ide as the product. if you change that to the rcp product id for the agent and then restart, it all works great.
Comment 1 Pascal Rapicault CLA 2007-08-07 10:22:16 EDT
The problem probably comes from the metadata that does not unset the product settings. However if we had that ability, then we would have no product in the config.ini which is not really better.
It seems that the right solution is to have the metadata to unset and have the engine run a "re configure" phase on the IUs that are left in the system.
Comment 2 Jeff McAffer CLA 2007-08-07 10:36:23 EDT
What are you using the QAContact for?  I don't recall us using this field before?
Comment 3 Pascal Rapicault CLA 2007-08-07 10:43:07 EDT
I meant to use the CC field :)
Comment 4 Jeff McAffer CLA 2007-08-07 11:03:43 EDT
still an interesting problem.  in the case of uninstalling the thing the currently supplies "productness", it is ambiguous what the new product should.  In the case of an undo, we can revert to the previous product.  In the plain uninstall case we need to be told or something.  to be told, we likely need to ask.  to ask, we need to give the user some choices.  to give choices we need to know what things would be reasonable choices. (and so on...)
Comment 5 Andrew Overholt CLA 2007-08-07 16:57:10 EDT
We had similar problems in the past with our RPM packages.  We try to mirror the upstream SDK downloads so we have eclipse-rcp and eclipse-platform and eclipse-sdk (among others).  The problem we ran into was when we were shipping a configuration so that config.ini needed to be changed on an installation of eclipse-sdk if eclipse-platform was already installed.  Now we just don't ship a system-wide configuration and let each user get a generated one :)
Comment 6 Denis Roy CLA 2007-08-17 11:17:19 EDT
Just trying to clear the QA Contact for bug 199090
Comment 7 Pascal Rapicault CLA 2009-08-25 22:48:25 EDT
We need to make the action smarter.