Bug 122940 - Allow per-document Macro Security settings
Summary: Allow per-document Macro Security settings
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Options-Dialog Macro
  Show dependency treegraph
 
Reported: 2019-01-24 19:58 UTC by Jim Avera
Modified: 2021-05-19 12:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2019-01-24 19:58:58 UTC
Description:
It would be great if the "Enable Macros?" dialog allowed an option of "Don't ask again for this document".

The answer (yes or no) would be stored in the user's profile, linked to the path or URI of the document.  Optionally, also provide a "Don't ask again for this version of this document" option which also stores a cryptographic checksum.

Options->Security->Macro Security would have a button to "forget per-document security settings" (probably any change to the global settings should implicitly forget the saved settings as well).

Motivation: Currently it is annoying to have to enable macros every time a known document is opened.  Of course, the user can set Macro Security to "Low" to trust every document unconditionally, but that is too dangerous.

In fact, if per-document settings are implemented, the "trust all documents without asking" option should IMO be eliminated.  It is simply never good practice to do that.

Steps to Reproduce:
.

Actual Results:
.

Expected Results:
.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Xisco Faulí 2019-05-02 10:48:42 UTC
Make sense. Moving to NEW
Comment 2 Mike Kaganski 2021-05-19 11:00:13 UTC
There is already "Trusted Sources" configuration [1]. The only needed change is IMO to allow that setting to also take specific filenames.

[1] https://help.libreoffice.org/7.1/en-US/text/shared/optionen/macrosecurity_ts.html