Bug 124314 - XLSM: removing modules from Standard macro library is not working
Summary: XLSM: removing modules from Standard macro library is not working
Status: RESOLVED DUPLICATE of bug 61398
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 16:57 UTC by Luuk
Modified: 2022-09-06 21:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
example with this problem (9.21 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-03-24 16:57 UTC, Luuk
Details
delete-button-not-active 2019-03-25 232810.jpg (65.88 KB, image/jpeg)
2019-03-25 22:29 UTC, Luuk
Details
per request, see comment #4 (63.95 KB, image/jpeg)
2019-03-27 20:20 UTC, Luuk
Details
Testcase *.xlsm saved as *.ods (14.72 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-03-28 17:28 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luuk 2019-03-24 16:57:55 UTC
Created attachment 150260 [details]
example with this problem

After upgrading to LibreOffice 6.2.0.3 i noticed that i recieved a warning about macro's that are detected in a file named 'Email.ods'.

But there are no macro's in there!

Under Tools/Macros/Organize Macros/LibeOfficeBasic
- Existing macro's is empty
- 'Delete' button is always disabled.

<=== MESSAGE ===?
'Security Warning'
The document contains document macros.
Macros may contain viruses. Disabling macros for a document is always safe. If you disable macros you may lose functionality provided by the document macros.
[Help][Enable Macros][Disable Macros]
</=== MESSAGE ===>



Wanted solution:
Because there are no macro's in this file, the MESSAGE should not be shown.

Attached is a file named 'ABC.ods', which reproduced this problem.
Comment 1 Oliver Brinzing 2019-03-24 20:54:28 UTC
attached file contains an empty macro library "Module1", 
referenced from "META-INF/manifest.xml":

<manifest:file-entry manifest:full-path="Basic/Standard/Module1.xml" manifest:media-type="text/xml"/>
 <manifest:file-entry manifest:full-path="Basic/Standard/script-lb.xml" manifest:media-type="text/xml"/>
 <manifest:file-entry manifest:full-path="Basic/script-lc.xml" manifest:media-type="text/xml"/>

to remove the library:
- open spreadsheet
- Menu Tools/Macros/Organize Macros/LibreOffice Basic...
- select "ABS.ods/Standard/Module1"
- [Organizer...]
- [Delete]
- [Close]
- save
Comment 2 Luuk 2019-03-25 22:29:32 UTC
Created attachment 150286 [details]
delete-button-not-active 2019-03-25 232810.jpg
Comment 3 Luuk 2019-03-25 22:30:27 UTC
the button is not active, see screenshot.
Comment 4 Oliver Brinzing 2019-03-27 16:16:55 UTC
(In reply to Luuk from comment #3)
> the button is not active, see screenshot.

please switch to tab "Libraries" and try to delete the empty macro container.
tab "Modules" is for deleting modules inside libraries.
Comment 5 Luuk 2019-03-27 20:20:32 UTC
Created attachment 150328 [details]
per request, see comment #4

Still no active 'delete' button
Comment 6 Oliver Brinzing 2019-03-28 17:28:32 UTC
Created attachment 150373 [details]
Testcase *.xlsm saved as *.ods

looks like your email.ods was originallay a *.xlsm file
Comment 7 Luuk 2019-03-28 20:50:21 UTC
That can (or could?) be true.
There is info in this sheet from 2004, back than i had Excel 2003.

But the message about the macros appeared in LibreOffice 6.2.0.3

A solution to make the message go away, without copying the contents of the sheet(S) to another workbook would be the best option.

It would be best if this is a LibreOffice solution, because the file is, for quite some time now, converted by LibreOffice to an .ods file.
Comment 8 Oliver Brinzing 2019-03-30 13:20:39 UTC
setting to new, cause it's reproducible with my test *.ods file:

it seems not to be possible to remove the 4 modules:

Testcase.ods
+ Standard
  + Document Objects
  + Forms
  + Modules
  + Class Modules

from the "Standard" document macro library.
Comment 9 QA Administrators 2021-03-30 03:39:43 UTC Comment hidden (obsolete, spam)
Comment 10 Justin L 2022-09-06 21:05:55 UTC
Let's mark this as a duplicate, and encourage anyone looking into it to make sure they test the fix in the various output formats.

*** This bug has been marked as a duplicate of bug 61398 ***