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

Bug 333667

Summary: Bundle FindHook should be driven for install operations
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: glyn.normington
Version: 3.7   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 330776, 333189, 333192    
Attachments:
Description Flags
Proposed fix none

Description Thomas Watson CLA 2011-01-06 11:10:16 EST
The bundle find hook should be called on install bundle when an existing bundle
is already installed at the given location. (If there is no such bundle, the
find hook should not be driven and the behaviour is as today.).  The Bundle FindHook should be driven in the same way as BundleContext.getBundle(id) does with the id of the existing bundle.

If the find hook filters out the bundle, then the install fails with a
BundleException.

If the find hook does not filter out the bundle, the install succeeds and the
bundle is returned.
Comment 1 Thomas Watson CLA 2011-01-06 13:49:41 EST
Created attachment 186207 [details]
Proposed fix
Comment 2 Thomas Watson CLA 2011-01-06 13:51:22 EST
Patch released.