Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333667 - Bundle FindHook should be driven for install operations
Summary: Bundle FindHook should be driven for install operations
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 330776 333189 333192
  Show dependency tree
 
Reported: 2011-01-06 11:10 EST by Thomas Watson CLA
Modified: 2011-01-07 11:42 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (6.76 KB, patch)
2011-01-06 13:49 EST, Thomas Watson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.