Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342492 - [director] Unable to set IU profile property on latest IU version in repo with multiple versions
Summary: [director] Unable to set IU profile property on latest IU version in repo wit...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340791
  Show dependency tree
 
Reported: 2011-04-11 17:49 EDT by DJ Houghton CLA
Modified: 2011-04-12 13:06 EDT (History)
0 users

See Also:


Attachments
patch (1.42 KB, patch)
2011-04-11 17:52 EDT, DJ Houghton CLA
no flags Details | Diff
patch (1.42 KB, patch)
2011-04-12 13:05 EDT, DJ Houghton CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2011-04-11 17:49:24 EDT
See bug 340791.

When we try and set IU profile properties and don't specify a version, the code needs a copy of the IU object so we do a query (get back an iterator) and take the first result. But the semantics of a non-version specified install say that we install the latest version. 

So in the case of the referenced bug, we are installing version 2 but trying to set the property on version 1, which doesn't work.
Comment 1 DJ Houghton CLA 2011-04-11 17:52:55 EDT
Created attachment 192980 [details]
patch
Comment 2 DJ Houghton CLA 2011-04-12 13:05:44 EDT
Created attachment 193074 [details]
patch

Better patch.
Comment 3 DJ Houghton CLA 2011-04-12 13:06:22 EDT
Patch released.