Apache OpenOffice (AOO) Bugzilla – Issue 110184
Documentbound macros not executed when file is loaded vial API
Last modified: 2017-05-20 10:22:45 UTC
Testcase f_security_macrosecurity.bas While loading test files with document bound macros the macros are not executed if the security level is low or medium. This is (until now ;-)) not reproducible manually.
.
cd->mav: Do you have an idea why this can happen?
mav->jsk: Does the test implementation use the correct value for "MacroExecutionMode" parameter in MediaDescriptor? If the parameter is not set, no macro execution is the default behavior for API calls.
cd->mav: Please take over. cd->jsk: Could you please answer the question from Mikhail?
Taking over.
I used an API call to set the macro security level prior to running the test, However, i suggest that i take a look at a recent build to confirm the problem. I guess it would be helpful if we had a reproducible scenario.
Changing the target to OOo3.4. Please declare it as a schowstopper if you believe that it should be fixed for OOo3.3.
As jsk has reported the problem looks to affect OOO330_m1 as well.
Retarget to 3.3, raising priority to 2. Scenario for reproduction is available
mav->jsk: The problem seems to be triggered by calling convertToURL() twice in the scenario. The original problem lies in convertToURL() call that is used in automation tests. If the call gets an URL instead of system path it produces an invalid URL by introducing additional slashes ( "file://///..." ). Sending to you as discussed.
The autotest should be modified not to do the conversion at the start of the test but to leave this to the file-handling functions (hFileOpen).
Started
Fixed
Verified