From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oObfApku8WObdQEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 21:01:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cCPsApku8WMueAAA9RJhRA (envelope-from ) for ; Sat, 18 Feb 2023 21:01:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CCFE714563 for ; Sat, 18 Feb 2023 21:01:28 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eBGTmdAb; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676750488; a=rsa-sha256; cv=none; b=PL4IYmYO6pbsu05QTU3wta4JLLeC3uuymNtbiot+pvMHi4OMUUEpBC/wL1RrCVM8Z28ysE dd4pBGV10pyOCIiuQGpI2D8thMvmJcfIupCicsyRW8ikzBL2FbdnExt73BqEx1fhP1GrKW O0yT0P2NR3lVq4pdJzzYjzjgKhJctF/BYZ6L2nTHwSeqI+fBCqCYKuQEDDtHV8Zvszqx85 mUvdL2m1klhp2tiX6FYLvVbsqvJDiTPHrwPuVdhyTpC2hFEqxxoUnidS5qPRHfOrKi+D9b /rBxl7XrOeHzpVdmd8j/f8onXY+yGnCXJ9PrU7OsSnEzppIaeign5RIWFidANQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eBGTmdAb; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676750488; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=MeMNPIMXdqENC85+QN9lM+9IwKl6ruDDYvAjGVHZaGU=; b=jrNVxFXsMNMqufBN8cQheBsTxTgcJZzmxeWSKHBm6omaUQ0lDsiLf32MNcd6Dpb5tMvr2n +FxxmADg4eKOOnDkSkV02q4Z3H1+NeTzGIiAMZz47gVk7np2dOxp+CBe9QoK1/0S50UR/D ci/VifZpGCi4DUddij6OA1xUSSC2jwR1GQV6GZsf9vuOMnzNEOcTs4KCXS+cYCLWkyQnA9 44nFOkldNrq8W3vtKdkwocbS0xcmucn2DGPVWuLWzyejqpB1o3paSJC/wfTgMIXgmsq0VF I5kVbWAWBObHifdBg9OAQUbDXQ7G+rO+Z88ub3GD+w0t+M5QMpKiTJNjSTpLbw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTTOL-0001wS-1I; Sat, 18 Feb 2023 15:01:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTTOJ-0001vZ-8l for bug-guix@gnu.org; Sat, 18 Feb 2023 15:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTTOI-0001is-Dp for bug-guix@gnu.org; Sat, 18 Feb 2023 15:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTTOI-0000bh-9g for bug-guix@gnu.org; Sat, 18 Feb 2023 15:01:02 -0500 Subject: bug#59292: libreoffice password protection doesn't work Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 18 Feb 2023 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59292 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59292-done@debbugs.gnu.org Mail-Followup-To: 59292@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 59292-done@debbugs.gnu.org id=D59292.16767504122252 (code D ref 59292); Sat, 18 Feb 2023 20:01:02 +0000 Received: (at 59292-done) by debbugs.gnu.org; 18 Feb 2023 20:00:12 +0000 Received: from localhost ([127.0.0.1]:45009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTTNT-0000aF-PP for submit@debbugs.gnu.org; Sat, 18 Feb 2023 15:00:12 -0500 Received: from mail-qt1-f175.google.com ([209.85.160.175]:43001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTTNR-0000YV-2I for 59292-done@debbugs.gnu.org; Sat, 18 Feb 2023 15:00:10 -0500 Received: by mail-qt1-f175.google.com with SMTP id i14so800721qtr.9 for <59292-done@debbugs.gnu.org>; Sat, 18 Feb 2023 12:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=MeMNPIMXdqENC85+QN9lM+9IwKl6ruDDYvAjGVHZaGU=; b=eBGTmdAbBtDl0h7pQ6IyWe5ZIIZumK0EYUjdVe4C7GjPZhsu0X4fgqCksuXX9cDnGx 2pt/LXjCOWiU/viCP8Q2V13Zs3UQerczAI+iHc/SM8QZZov6OgbnKQCcUlMATkgdHQhy OrsLLKZFsFv/OOXyIzn0gv9lqRgk+44aJNNPFjuseH3srDkr6UXQQB7Z51BIKIZ1KHY+ IgedcEuaAhNsdA7cUMd0bHb10skD47c9DtTNSfWXEDM3OjpOW1sVYZ0HsXZ84g4MQJlX bq72RQF3QdD299SCbEszOH/nfhVXpWLbhPa0zBAqQ97RuE/hlV1WWP5giRIoMe5+Kodz tOhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MeMNPIMXdqENC85+QN9lM+9IwKl6ruDDYvAjGVHZaGU=; b=MDq11d4Hv7+suLgWMGbcvQW2SjeI2Tz7a56YDOSfPLvu/1AeWowtWya5+2IRWGe7yi yMmCCsFKpnaV2+xo62hgtW3vDs6JFmHh0edMkyUlp7VdSYXGkfYB7Fe3M1m3f42djzeI KwYy2SEur+Z07lWLL2cPAg2vEa9e5rcibKi4wxengmftXMyFfV+199HRR+Z5Ga1uD3OP /eMDPpXaee8hJyoCXbsJKabCFt6ZtSGwAcxMnGtef69CSy7/B3vmbR9Er5VsLXbZ8eaS OYjQSSzDLChoomSCd0HCWFuiRM0rCahaFwhMqvvNAMUyYAiF2qrXfNVmU5xMOCLOEwWe /djQ== X-Gm-Message-State: AO0yUKXhknksIFhay39LgGMImYZ3XbcR2GUcC9489k3o89qcq+26Vf2h DFsgYC3GiLrR4ZquJAX/wnq/rpbwoP5fNA== X-Google-Smtp-Source: AK7set/O4OMM65bqvSxwNCOXTO9XF7MDH+Jia7aYlfoT+navAZy5p0qhARPxI44tmxf2bWGAO9AZQg== X-Received: by 2002:a05:622a:1a03:b0:3b8:6db0:7564 with SMTP id f3-20020a05622a1a0300b003b86db07564mr8263683qtb.44.1676750403145; Sat, 18 Feb 2023 12:00:03 -0800 (PST) Received: from hurd (dsl-157-123.b2b2c.ca. [66.158.157.123]) by smtp.gmail.com with ESMTPSA id fu48-20020a05622a5db000b003bd119dd615sm4708895qtb.97.2023.02.18.12.00.02 for <59292-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Feb 2023 12:00:02 -0800 (PST) From: Maxim Cournoyer References: <87sfijln98.fsf@gmail.com> <87ilg0qazj.fsf@gmail.com> <877cwfr42x.fsf@gmail.com> <87zg9bpp9h.fsf@gmail.com> Date: Sat, 18 Feb 2023 15:00:01 -0500 In-Reply-To: <87zg9bpp9h.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 17 Feb 2023 23:32:26 -0500") Message-ID: <87zg9aoibi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: CCFE714563 X-Spam-Score: -2.03 X-Migadu-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: 0PwDN8pJGAzG Hello, Maxim Cournoyer writes: > Hi again, > > Maxim Cournoyer writes: > > [...] > >> It never resolves libnssckbi.so. >> >> LibreOffice attempts to load this library in >> xmlsecurity/source/xmlsec/nss/nssinitializer.cxx, in the >> 'nsscrypto_initialize' procedure. >> >> The library appears to be dynamically loaded via SECMOD_LoadUserModule. >> Perhaps we can patch 'OUString rootModule("libnssckbi" >> SAL_DLLEXTENSION)' to its full name. Some more output, after building >> libreoffice with "--enable-sal-log" and setting the 'SAL_LOG=+INFO' >> environment variable: >> >> info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:857: expandMacros called with: libnssckbi.so >> info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:985: expandMacros result: libnssckbi.so >> info:xmlsecurity.xmlsec:8927:8927:xmlsecurity/source/xmlsec/nss/nssinitializer.cxx:471: FAILED to load the new root certificate module Root Certs for OpenOffice.orgcontained in libnssckbi.so >> warn:legacy.osl:8927:8927:comphelper/source/misc/storagehelper.cxx:406: Can not create SHA256 digest! >> warn:package.xstor:8927:8927:package/source/xstor/owriteablestream.cxx:1138: >> Can't write encryption related properties >> com.sun.star.uno.RuntimeException message: "No expected key is >> provided! at >> /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243" >> info:package.xstor:8927:8927:package/source/xstor/xstorage.cxx:2274: >> Rethrow com.sun.star.io.IOException message: "No expected key is >> provided! at >> /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243 >> at >> /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/xstor/owriteablestream.cxx:1140" >> >> So it seems to cause an error, which is apparently ignored. > > I confirm this is the problem. A workaround is to augment > LD_LIBRARY_PATH, e.g.: > > "LD_LIBRARY_PATH=/gnu/store/...-nss-3.81/lib/nss:$LD_LIBRARY_PATH /gnu/store/...-libreoffice-7.5.0.3/bin/libreoffice --calc" I've reported the problem upstream [0], and push a fix for our package with 9f21ca83a89a5e6c808b58fab0dc54b7785c26b7 ("gnu: libreoffice: Fix password encryption issue."). Closing! [0] https://bugs.documentfoundation.org/show_bug.cgi?id=153714 -- Thanks, Maxim