[Libreoffice-bugs] [Bug 140234] Password protection doesn't work (Win 7 only)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Feb 7 15:46:50 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140234

Aron Budea <baron at caesar.elte.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Calc                        |LibreOffice
     Ever confirmed|0                           |1
                 CC|                            |baron at caesar.elte.hu
           Severity|normal                      |major
             Status|UNCONFIRMED                 |NEW
            Summary|Password protection doesn't |Password protection doesn't
                   |work in Calc                |work (Win 7 only)

--- Comment #4 from Aron Budea <baron at caesar.elte.hu> ---
I can confirm on Windows 7, and have encountered likely the same issue recently
when running unit tests, CppunitTest_services failed when trying to instantiate
com.sun.star.security.CertificateContainer, because loading xmlsecurity.dll
failed.

As far as I can see, the problem is with a call to LoadPackagedLibrary in
libxmlsec, which only exists since Windows 8:
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-loadpackagedlibrary

The call is here:
https://github.com/lsh123/xmlsec/blob/21bbcb04b62352331a15a0b8463ebb27a9b858bc/src/dl.c#L160

And was added with the following commit:
https://github.com/lsh123/xmlsec/commit/3ecf7d2ad4fd8017cd803b98962872799def621a

Commenting out the added lines, and rebuilding xmlsec and LO fixes both the
unit test failure, and the issue reported here.
Btw, not just Calc is affected, password protection of files doesn't work in
the other apps, either.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210207/38da3135/attachment.htm>


More information about the Libreoffice-bugs mailing list