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

Bug 342492

Summary: [director] Unable to set IU profile property on latest IU version in repo with multiple versions
Product: [Eclipse Project] Equinox Reporter: DJ Houghton <dj.houghton>
Component: p2Assignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 340791    
Attachments:
Description Flags
patch
none
patch none

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.