Bug 107912 - [osgi] StartLevel#setBundleStartLevel must check for AdminPermission
Summary: [osgi] StartLevel#setBundleStartLevel must check for AdminPermission
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: Thomas Watson CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 15:06 EDT by Thomas Watson CLA Friend
Modified: 2005-08-26 10:47 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix (1.31 KB, patch)
2005-08-24 15:10 EDT, Thomas Watson CLA Friend
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 Friend 2005-08-24 15:06:10 EDT
The implementation of StartLevel#setBundleStartLevel incorrectly checks for 
AdminPermission[bundle, EXECUTE] too late.  It should check that the caller 
has this permission before performing any operations.
Comment 1 Thomas Watson CLA Friend 2005-08-24 15:10:54 EDT
Created attachment 26419 [details]
Proposed fix
Comment 2 Thomas Watson CLA Friend 2005-08-24 15:12:11 EDT
Patch released in HEAD for 3.2

Pascal, please review fix for 3.1.1 maintenance branch.  Thanks.
Comment 3 Pascal Rapicault CLA Friend 2005-08-26 09:01:49 EDT
Patch reviewed. Good to go.
Comment 4 Thomas Watson CLA Friend 2005-08-26 10:47:26 EDT
Fixed in 3.1 maintenance branch and HEAD.