Bug 152750 - File - Digital Signatures generate a warning in console with debug LO: DBG_UNHANDLED_EXCEPTION in ReadAndVerifySignature
Summary: File - Digital Signatures generate a warning in console with debug LO: DBG_UN...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Digital-Signatures console-noise
  Show dependency treegraph
 
Reported: 2022-12-31 07:31 UTC by BogdanB
Modified: 2023-10-21 13:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BogdanB 2022-12-31 07:31:23 UTC
Description:
Open a new LibreOffice Writer document. SAVE. File - Digital Signatures

In the terminal, in the dbg version of LibreOffice I get this messages:
warn:xmlsecurity.helper:284617:284617:xmlsecurity/source/helper/xmlsignaturehelper.cxx:281: DBG_UNHANDLED_EXCEPTION in ReadAndVerifySignature exception: com.sun.star.xml.sax.SAXParseException message: "[ line 1]: no elementserror at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:677"
    wrapped: com.sun.star.xml.sax.SAXParseException message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:472"
    wrapped: void message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/comphelper/source/misc/diagnose_ex.cxx:66" PublicId:  SystemId:  LineNumber: 0 ColumnNumber: 0 PublicId:  SystemId:  LineNumber: 1 ColumnNumber: 0

----

If I don't save the document BEFORE going to File - Digital Signatures I get the windows asking me to save, I save and then I get the message in the terminal:
warn:sfx.appl:298141:298141:sfx2/source/appl/appserv.cxx:313: no parent for dialogs


Steps to Reproduce:
see description

Actual Results:
warnings

Expected Results:
no warnings


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-12-31 10:10:24 UTC
Repro also in Calc with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

The "no parent for dialogs" should probably be tracked separately, as unrelated to the digital signatures dialog. (You could trigger it with e.g. File > Save a copy.)
Comment 2 BogdanB 2023-07-31 16:25:06 UTC
An update here:
warn:legacy.tools:313785:313785:sfx2/source/control/bindings.cxx:1770: No cache for OfficeDispatch!
warn:xmlsecurity.helper:313785:313785:xmlsecurity/source/helper/xmlsignaturehelper.cxx:280: DBG_UNHANDLED_EXCEPTION in ReadAndVerifySignature exception: com.sun.star.xml.sax.SAXParseException message: "[ line 1]: no elementserror at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:674"
    wrapped: com.sun.star.xml.sax.SAXParseException message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:469"
    wrapped: void message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/comphelper/source/misc/diagnose_ex.cxx:66" PublicId:  SystemId:  LineNumber: 0 ColumnNumber: 0 PublicId:  SystemId:  LineNumber: 1 ColumnNumber: 0

Retested in
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0e17d8ddccdee7d4f46b256153853e1cab87c99e
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 3 BogdanB 2023-10-21 13:19:49 UTC
warn:xmlsecurity.helper:241078:241078:xmlsecurity/source/helper/xmlsignaturehelper.cxx:280: DBG_UNHANDLED_EXCEPTION in ReadAndVerifySignature exception: com.sun.star.xml.sax.SAXParseException message: "[ line 1]: no elementserror at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:674"
    wrapped: com.sun.star.xml.sax.SAXParseException message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sax/source/expatwrap/sax_expat.cxx:469"
    wrapped: void message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/comphelper/source/misc/diagnose_ex.cxx:66" PublicId:  SystemId:  LineNumber: 0 ColumnNumber: 0 PublicId:  SystemId:  LineNumber: 1 ColumnNumber: 0
warn:ucb.ucp.webdav.curl:241078:241227:ucb/source/ucp/webdav-curl/CurlSession.cxx:960: curl_easy_perform failed: (60) SSL certificate problem: unable to get local issuer certificate
warn:ucb.ucp.webdav:241078:241227:ucb/source/ucp/webdav-curl/webdavcontent.cxx:4058: OPTIONS - DAVException: DAV_HTTP_TIMEOUT or DAV_HTTP_CONNECT for URL <https://update.libreoffice.org/check.php?pkgfmt=archive>

Restested with
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9a0018a356c89baf600a72eed8ee4ac927815b9b
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded