Issue 11877 - checkPermission not throwing a Security Exception
Summary: checkPermission not throwing a Security Exception
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: duncan.foster
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 07:28 UTC by Unknown
Modified: 2004-11-26 09:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-02-27 07:28:39 UTC
Security: checkPermission should be changed to throw a SecurityException if it
fails to obtain requested permission. It is up to the caller to handle the
exception and determine what action should be taken.
Will effect resolveURIFromStorageID( ), getStorageInstance( ) and resolve( ) in
ScriptNameResolverImpl
Comment 1 Unknown 2003-02-27 07:29:37 UTC
Reset target. Assign to Noel - should form part of actions from
security code review.
Comment 2 noel.power 2003-02-28 08:00:23 UTC
Started, will be folded in with refactor work.
Comment 3 noel.power 2003-02-28 08:01:26 UTC
Change state, incorrectly set to fixed
Comment 4 noel.power 2003-02-28 08:02:01 UTC
Correct state
Comment 5 Unknown 2003-03-04 07:51:48 UTC
Should be fixed as part of security mods
Comment 6 duncan.foster 2003-03-05 11:35:08 UTC
Fixed. checkPermissions throws AccessControlException if permission
refused. throws IllegalArgumentException if URL is not known to
ScriptSecurityManager, or if incorrect/unknown permission type is
requested.
Comment 7 robert.kinsella 2003-03-26 08:49:23 UTC
changing state to verified
Comment 8 duncan.foster 2004-11-26 09:36:27 UTC
closed