Issue 21624

Summary: security options do not function
Product: General Reporter: robert.kinsella
Component: scriptingAssignee: duncan.foster
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P2 CC: issues
Version: current   
Target Milestone: OOo 2.0   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description robert.kinsella 2003-10-23 16:28:26 UTC
StarOffice 8695 on mercury (suse linux)

Create a simple basic macro e.g. macro1, to execute e.g. msgbox "test"
(or use an alternate e.g. java, beanshell)
Assign the macro to a menu item.
Select Tools, options, security. 
Set Run Macro option to never.

Select the menu item made to execute the script
BUG the script executes, scripts should not execute when security option is set
to never.
Comment 1 robert.kinsella 2003-10-23 16:29:44 UTC
setting to higher priority
Comment 2 noel.power 2003-10-28 09:57:16 UTC
assign to duncan
Comment 3 noel.power 2003-10-29 10:01:51 UTC
Changed milestone
Comment 4 duncan.foster 2003-10-29 15:04:08 UTC
We had removed the Scripting frameworks code for doing a security
check without adding code to call the sfx2 modules security check. 
Added this to the ScriptProtocolHandler.
Needed to add a method to the SfxObjectShell to allow read-only access
to the MacroMode. 
Comment 5 duncan.foster 2003-10-29 15:14:02 UTC
Should also mention that now, since the ScriptProtocolHandler depends
on the sfx2 library, the SHL1TARGET for the protocolhandler has been
changed to include the UPD.
Comment 6 duncan.foster 2004-11-26 09:37:28 UTC
closed