[Libreoffice-bugs] [Bug 144162] New: Document event binding for "LibtreOffice" is not regarded if the execution of document macros was disallowed.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 29 16:37:23 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144162

            Bug ID: 144162
           Summary: Document event binding for "LibtreOffice" is not
                    regarded if the execution of document macros was
                    disallowed.
           Product: LibreOffice
           Version: 7.2.0.4 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jag at psilosoph.de

The document events I'm using on a regular basis (currently with all my
documents) are:
OnViewCreated
OnDocumentHasBeenSaved
OnDocumentHasBeenSavedAs

If a document is containing macros, and macro execution was not permitted when
opening it (Security Options), the Sub stored to the local Standard library,
and assigned to the mentioned events, are not called.  

Steps to reproduce:

Edit Basic macros for LibO. (No document opened.)
Create an arbitrary hello-world-macro in a module of the local Standard
library.
Assign this macro to 'On View Created' via >Tools>Customize>Events (LibreOffice
as target). 

Have at hand any document containing a macro.
Open it with either Macro Security 'High' or 'Medium' and macros not permitted. 
Expected: The mentioned hello-world-macro is executed.
Experienced: No action.

Open the same document permitting the execution of document macros.
Expected: The mentioned hello-world-macro is executed.
Experienced: As expected.

The bug:
Macro security should only concern document macros. Local macros and their
bindings to events shouldn't be afflicted.  

Since the bug depends on the local settings and event bindings, it can't be
demonstrated by an example file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210829/58566641/attachment.htm>


More information about the Libreoffice-bugs mailing list