Bug 113735 - Digital signature - show signatures button and icon in the status bar don't work for invalid signature in PDF
Summary: Digital signature - show signatures button and icon in the status bar don't w...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Digital-Signatures
  Show dependency treegraph
 
Reported: 2017-11-09 11:28 UTC by František Soukup
Modified: 2022-11-09 11:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Show signatures button (62.02 KB, image/png)
2017-11-09 11:29 UTC, František Soukup
Details
Error while open pdf (44.15 KB, image/png)
2017-11-09 11:30 UTC, František Soukup
Details
View of digital signatures (67.18 KB, image/png)
2017-11-09 11:32 UTC, František Soukup
Details
example PDF (1.56 MB, application/pdf)
2020-07-24 05:48 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description František Soukup 2017-11-09 11:28:46 UTC
Description:
While importing digitally signed PDF the "Show signatures" button doesn't work in Version: 5.4.2.2.0+



Steps to Reproduce:
1. DISPLAY=:0 soffice /tmp/test.pdf
2. when I click "Show signatures" OR when I try "File > Digital Signatures >  Digital Signatures..." nothing happens (in gui)
3. in console I see folowing error:

Actual Results:  
---error---
func=xmlSecBase64CtxFinal:file=base64.c:line=283:obj=unknown:subj=outSize > 0:error=100:assertion:
func=xmlSecBase64Decode:file=base64.c:line=676:obj=unknown:subj=xmlSecBase64CtxFinal:error=1:xmlsec library function failed:
---error---

Expected Results:
Should show the signatures even they are invalid


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Same behaviour in the safe mode and when user profile was resetted
5.4.3 is affected in the same way
5.3.6.1 is OK

5.4.2.2.0+
Build ID: Gentoo official package
CPU threads: 8; OS: Linux 4.12; UI render: default; VCL: kde4; 
Locale: en-GB (en_GB.utf8); Calc: single




User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 František Soukup 2017-11-09 11:29:31 UTC
Created attachment 137636 [details]
Show signatures button
Comment 2 František Soukup 2017-11-09 11:30:49 UTC
Created attachment 137637 [details]
Error while open pdf

Error which produce 5.3.6 version. It is not produced in > 5.4.x
Comment 3 František Soukup 2017-11-09 11:32:29 UTC
Created attachment 137638 [details]
View of digital signatures

In 5.3.6 I can see signatures, even, when they are invalid. In > 5.4.x the dialog is not shown at all.
Comment 4 Timur 2018-02-28 12:10:24 UTC
Thank you for the report. But can you please:
- test again with new LO version if you're using some
- test with master from https://dev-builds.libreoffice.org/daily/master/ or with daily AppImage from https://libreoffice.soluzioniopen.com/.
- attach a file with invalid signature you used to get that message
Comment 5 Timur 2018-07-16 17:15:44 UTC Comment hidden (obsolete)
Comment 6 František Soukup 2018-09-03 12:08:09 UTC Comment hidden (obsolete)
Comment 7 Timur 2018-09-03 13:54:24 UTC
Reporter sent me private PDF. I confirm "Show signatures" button and icon in the status bar don't work in master 6.2+.
Infobar is from Bug 105566. Can be that this one is about PDF or macros.
Comment 8 QA Administrators 2019-09-04 04:29:40 UTC Comment hidden (obsolete)
Comment 9 Timur 2019-09-04 07:54:44 UTC
Repro 6.4+
Comment 10 Stéphane Guillou (stragu) 2020-07-24 05:47:41 UTC
Reproducible with:

Version: 7.0.0.1
Build ID: 04ba7e3f1e51af6c5d653e543a620e36719083fd
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Clicking on "Show signatures" in the banner, or going to "File > Digital Signatures > Digital Signatures..." does nothing.
Comment 11 Stéphane Guillou (stragu) 2020-07-24 05:48:51 UTC
Created attachment 163470 [details]
example PDF

Can be tested on this PDF as well. Original from provider, was not modified.
Comment 12 chez14 2020-10-10 15:49:51 UTC
Can confirm, this didn't work on me too.


Document Source: TCPDF Example no. 52:
https://tcpdf.org/examples/example_052/


Version Info:
Version: 7.0.2.2
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 13 QA Administrators 2022-10-11 03:34:46 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2022-11-09 11:32:53 UTC
Works again since at least:

Version: 7.0.6.2
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Not sure which commit fixed it, so status set to Works For Me.