Apache OpenOffice (AOO) Bugzilla – Issue 79885
Macro Security not changeable in Aqua port m221+aquavcl02
Last modified: 2007-09-12 05:14:41 UTC
Running the AQUA testtool with the topten test generates an error when the Macro Security check is conducted. A manual check of the program reveals that this function does not appear to be implemented with the Aqua build. attached are two screen shots that show the error and the screen where the error occurs. This error is masked in the X11 testtool and refers to another issue.
Created attachment 46981 [details] Error screen from Testtool
Created attachment 46982 [details] OpenOffice AQUA screenshot with Macro Security selected
Confirmed. It's an issue for the port not for the test. Tools / Options / OOo / Security / -> Click Macro Security button BUG; The Macro Security isn't changeable.
jsi->pl: Could have a look at it?
Interesting. It works here in hacked-together-build SRC680_m222 + aquavcl01, language cs. Screenshot attached.
Created attachment 47016 [details] SChanged macro security
ericb->pjanik indeed, SRC680_m222 + aquavcl01 is really a hack ... maybe you meant aquavcl02 ? If so, this is normal : the changes to make the testool wortk are in aquavcl02 cws
*** Issue 79347 has been marked as a duplicate of this issue. ***
This is not a testtool error. You can reproduce this easily; the reason is that the macro security dialog is implemented by the com.sun.star.security.DocumentDigitalSignatures service which does not seem to exist on mac.
we haven't said that this is a TT error...
The problem here seems to be no xmlsecurity module. That contains the dialog to enable macros. But xmlsecuritry has mozilla as dependency, which is disabled in our current builds -> no xmlsecurity. The problem wasn't so visible before because the default was that macros would be executed after confirmation by the user. This default now seems to be changed to not excute at all and cannot be changed without the missing xmlsecurity service. Or perhaps I'm totally wrong :-)
As a workaround, you can set the macro security level to medium (that's where you get the prompt whether to execute them or not), by modifygin the file ~/Library/Application Support/OpenOffice.org- aqua/2/user/registry/data/org/openoffice/Office/Common.xcu Just add the following, e.g. at the end - 1 line: <node oor:name="Security"> <node oor:name="Scripting"> <prop oor:name="MacroSecurityLevel" oor:type="xs:int"> <value>1</value> </prop> </node> </node> (A value of 0 is unwise :-), ok it is level "low")
@bm: A level of zero '0' is used for automated testing so that 10ertest.sxw will run the complete test. However, loading this file causes OpenOffice.org AQUA to immediately terminate. I will attach the crashlog to this issue. James
Created attachment 47708 [details] Crash Log from OpenOffice.org AQUA m225 + macosxcarbonfixes on load of 10ertest_680 test file
ericb)->jjmckenzie macosxcarbonfixes is not the best version for the test Can you try with m225 vanilla. There is one here: http://ftp.cusoo.org/MacOSX/INTEL/snapshots_aqua/ august_17/en-US/ Note; this link will disappear soon, when new versions will be available.
building with mozilla indeed solves the problem of the absent macro security. Also building mozilla in the moz modules worked straightforward for me (I needed to install gtk+2-dev and its dependencies with fink). So unless you want to investigate on this crash issue i think we can close this one.
@pl: Can you provide the configure line? I have Fink installed as well as GTK+2.0-dev. James
simply do not add --disable-mozab and --disable-mozilla; and you'll need the mozilla 1.7.5 source tarball in moz/download. FWIW this is my configure line ./configure \ --enable-dbgutil \ --with-lang="en-US" \ --with-jdk-home=/Library/Java/Home/ \ --with-epm=internal \ --disable-odk \ --disable-pasf \ --disable-gtk \ --with-build-version=$OOVERSION-`date +%d-%m-%y` \ --disable-fontconfig \ --disable-neon \ --without-nas for a normal product build you'll want to remove --enable-dbgutil
ericb->pl yes, but this means fink( or darwin ports), gtk+2 and co have to be installed on Aqua build ? IMHO install everything just to make macro work, is a bit hack, no ? More simple, I'd suggest to first test if just use new zipped mozilla archives could be a workaround ( avoiding everything fink/ darwin ports ..etc to be installed ). A long time change would be to remove all those dependencies, or at least simplify them
fink has to be installed anyway (if not, somebody should long have since updated the mac os build instructions). For the dialog dependency discuss this with jl, see issue 81230.
I got a patch tested working with m227 + aquavclcarbonfixes 1) with it, gtk and security API are decoupled for true. 2) I have choosen to only enable security on Aqua version, but the fix is trivial for all MACOSX versions.
issue fixed in aquavclcarbonfixes for _Aqua_ONLY_ @james : we need more time for X11 version. Please file a new issue for it
Created attachment 48179 [details] patch to allow macros to work on Aqua ( Mac OS X )
Please forgot my patch : it does nothing, and just pass --disable-build-mozilla + put the moz zipped archive at th right place and everything will work fine. Changes removed from aquavclcarbonfixes. Can we kee this issue as fixed ?
I consider this verified then.
@ericb: Thanks for the fix can we put the proper configure line here so that it can serve as a reference? I will close this issue. Thank you. James