Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 536414 - MPC loses install information on update
Summary: MPC loses install information on update
Status: CLOSED FIXED
Alias: None
Product: MPC
Classification: Technology
Component: wizard (show other bugs)
Version: 1.6.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.7.0   Edit
Assignee: Carsten Reckord CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-28 08:21 EDT by Carsten Reckord CLA
Modified: 2018-06-28 08:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Reckord CLA 2018-06-28 08:21:12 EDT
MPC uses the bundle data area to store mapping information between solutions  and corresponding P2 bits. Unfortunately, that data is lost whenever MPC is updated or its OSGi bundle ID otherwise changes.

I originally noticed this when working on bug 535039 and fixed it as part of that - assuming that this was a very minor change. Since this fix happened to cause bug 536385, I'm now documenting it here after the fact.

The problem is caused by the OSGi data area being bound  to the bundle id, which changes on update (and maybe other times). The fix is to use an org.eclipse.epp.mpc folder under the configuration area instead.
Comment 1 Carsten Reckord CLA 2018-06-28 08:24:21 EDT
Unfortunately, the change caused bug 536385, as mentioned above. The cause was a conversion from the configuration area URL to URI. If the configuration area path contains a space, that space is not encoded in the URL and breaks the URI conversion. 

This was fixed in commit b1618565d6b17dc38751425def832f0936304828