Created attachment 85252 [details] LibraryPassword.ods (after step 5) Hello When a document (calc/writer...) contains a macro in a library protected by password and runs "thisComponent.store" instruction, the password no longer allows to open the library. Steps to Reproduce: Open the attached LibraryPassword.ods spreadsheet and continue to step 6, or follow steps 1-5 below and continue. 1. File> New> Spreadsheet 2. Tools> Macros> Organize> LibO Basic, click Organizer, tab Libraries, location:Untitled 1, click New, name Library1, Ok 3. Click Password: foo (confirm), Ok 4. Click Edit: in Module1 of Library1, create the following macro: sub Main thisComponent.store End Sub 5. Save the document normally (without using the macro Main) and close it. 6. Reopen the document 7. Tools> Macros> Run macro> LibraryPassword.ods> Library> Module1> Main. 8. Tools> Macros> Organize> LibO Basic> LibraryPassword.ods> Library Type the password (foo). Expected result: password verified and ability to edit Actual result: error message "Incorrect Password", access denied Remarks: - Reproduced (fr-users) with Windows XP & 4.1.0.4 - Does not occur with OpenOffice - By cons, once the password corrupted with LibreOffice, it is also rejected with OpenOffice - Does not seem to occur with 3.x releases - Bug vicious, macros always work and you can not see that the library cannot be edited - Thousands of lines of code currently inaccessible, besides the bug fix, a recovery process corrupted documents would be welcome Best regards Pierre-Yves
May be related to bug 68983
Added the keyword dataloss in the summary.
(This is an automated message.) Setting priority to highest as this is a 4.1 MAB. This is part of an effort to make the importance of MAB reflected in priority too.
please retest against newly released LibO 4.2.4.2 if issue is still there please move it to the mab4.2 list
Hello (In reply to comment #4) > please retest against newly released LibO 4.2.4.2 > if issue is still there please move it to the mab4.2 list Still occurs in Version: 4.2.4.2 Build ID: 63150712c6d317d27ce2db16eb94c2f3d7b699f8 move to mab4.2
Cannot reproduce on master commit 82e1456e9ae19cd536c11b2bdda7a79909269c15 Author: Markus Mohrhard <markus.mohrhard@googlemail.com> Date: Fri May 30 05:15:01 2014 +0200 remove fsanitize=address from libgetuid.so makefile Change-Id: I3d292638b76ed09d84df36d096f70c9496a23fdf which, in particular, has the fix for bug 68983. This bugs also "smells" like a DUP of bug 68983, so marking as such. Please reopen if you can reproduce with any version where bug 68983 is fixed: - 4.2.5.1 (RC1): https://www.libreoffice.org/download/libreoffice-fresh/?version=4.2.5 - any nightly (4.2, 4.3 or master) build after 26 May: http://dev-builds.libreoffice.org/daily/ *** This bug has been marked as a duplicate of bug 68983 ***
Migrating Whiteboard tags to Keywords: (dataloss) [NinjaEdit]