Bug 37441 - Regression in 3.4RC1:macros should be executed in headless mode
Summary: Regression in 3.4RC1:macros should be executed in headless mode
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
3.4.0 RC1
Hardware: x86-64 (AMD64) Linux (All)
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 12:21 UTC by sergio.callegari
Modified: 2012-08-31 10:06 UTC (History)
0 users

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 sergio.callegari 2011-05-21 12:21:28 UTC
When launching libreoffice (or previous versions of openoffice.org) in --headless mode, it was nicely executing macros assuming that I really wanted to run them.

3.4RC1 hangs, instead, since it does not succeed in asking the user whether it should or should not enable macros and it cannot assume that --headless should mean "yes" in this case. Openoffice.org and libreoffice <= 3.3.2 were both making the right assumption, for the case where macro security was "medium"

IMHO who runs libreoffice in headless mode should know enough about macros security so the assumption that --headless also means "yes, enable macros" should be a safe one. Alternatively, please provide an --enable-macros on the command line to override the options setup.  Current behavior is IMHO very bad, since it compels users to give up macro security altogether, just to make libreoffice happy with headless mode.

Note that this is a regression wrt libreoffice 3.3.2 since scripts that have been running fine using soffice -headless for many years are now suddenly dead. Would be great fixing before 3.4 final is out.
Comment 1 sergio.callegari 2011-05-26 09:12:02 UTC
We have found a way to work around this problem.

Rather than distributing functionality via write documents we found that it is quite easy to pack macros as extensions and distribute them in that way. Once macros are installed, there is no permission problem anymore.

So if it is considered proper, this bug report can be re-classified down as a wish list:

As a wish I think it would be good to adopt one of the following:

1) Let --headless take the additional meaning of authorize the execution of macros in document; or

2) Add an --allow-macros override option to libreoffice
Comment 2 Björn Michaelsen 2011-12-23 12:04:28 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 3 sergio.callegari 2011-12-27 03:41:23 UTC
an --allow-macros option (or equivalent) is still not present as of 3.5.0 beta 2
Comment 4 sergio.callegari 2011-12-27 03:42:39 UTC
an --allow-macros option (or equivalent) is still not present as of 3.5.0 beta 2
Comment 5 Florian Reisinger 2012-08-14 14:02:53 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 6 Florian Reisinger 2012-08-14 14:03:49 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 7 Florian Reisinger 2012-08-14 14:08:23 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 8 Florian Reisinger 2012-08-14 14:10:26 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian