https://bugs.freedesktop.org/show_bug.cgi?id=68981

          Priority: medium
            Bug ID: 68981
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: "thisComponent.store" corrupts the macro library
                    password
          Severity: critical
    Classification: Unclassified
                OS: All
          Reporter: pierre-yves.sa...@laposte.net
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.0.5.2 rc
         Component: BASIC
           Product: LibreOffice

Created attachment 85252
  --> https://bugs.freedesktop.org/attachment.cgi?id=85252&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to