[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF, ' .tmp does not exist' from 6.4
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Miklos Vajna changed: What|Removed |Added Assignee|libreoffice-b...@lists.free |vmik...@collabora.com |desktop.org | Status|NEW |ASSIGNED --- Comment #22 from Miklos Vajna --- I'll take a look. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF, ' .tmp does not exist' from 6.4
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Timur changed: What|Removed |Added Summary|Cannot sign existing PDF|Cannot sign existing PDF, ' ||.tmp does not exist' from ||6.4 --- Comment #21 from Timur --- (In reply to Danilo Šegan from comment #12) > Is there a debug build for x64 Linux system with which I can see > SAL_INFO/SAL_WARN messages on the console? Yes, seen on https://dev-builds.libreoffice.org/daily/master/current.html. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Aron Budea changed: What|Removed |Added Blocks||105605 Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=105605 [Bug 105605] [META] Digital signatures bugs and enhancements -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Timur changed: What|Removed |Added OS|Linux (All) |All -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Buovjaga changed: What|Removed |Added Keywords|bibisectRequest |bibisected, bisected CC||s.mehrbr...@gmail.com --- Comment #20 from Buovjaga --- (In reply to Danilo Šegan from comment #11) > Attempting to sign *any* existing PDF works behaves exactly the same: > > * libreoffice6.4 --view /tmp/a.pdf > * Click on "Sign document" > * I get a pop-up saying "/tmp/lu12004kv2p7v.tmp does not exist" > * Without closing the pop-up, I can see a /tmp/lu12004kv2p7t.tmp directory > containing lu12004kv2p7u.tmp file — note how it complains about not finding > path with "v" in the name, there is a directory with "t" containing a file > with "u". > * After closing it, it pops-up another 4 times with exactly the same > message (for a total of 5 times). > * Attempting to re-sign it seems to use the same temporary file paths (i.e. > the pop-up message remains the same). > > (FWIW, attempting to "touch /tmp/lu12004kv2p7v.tmp" or "mkdir > /tmp/lu12004kv2p7v.tmp" does not make it continue working, but it was > probably already too late to "fix it up", i.e. the file handle is open > already) Bibisected with Linux 6.4 repo to https://git.libreoffice.org/core/+/9112c18524c9f5e67d6cbb282586a439e3020cdb%5E!/ Don't create unnecessary tempfiles for opened doc Adding Cc: to Samuel Mehrbrodt -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Timur changed: What|Removed |Added CC||ilmari.lauhakangas@libreoff ||ice.org Keywords||bibisectRequest, regression -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #19 from Héctor Alexis Pérez Cifuentes --- Same problem here, With version 7.x and 6.4.x. Thanks in advance. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #18 from Héctor Alexis Pérez Cifuentes --- Same problem here, With version 7.x and 6.4.x. Thanks in advance. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Timur changed: What|Removed |Added Priority|medium |high Severity|normal |major -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Timur changed: What|Removed |Added CC||healpe...@gmail.com --- Comment #17 from Timur --- *** Bug 132821 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #16 from Ioannis --- The file link in GIT is https://cgit.freedesktop.org/libreoffice/core/tree/sal/osl/unx/tempfile.cxx?h=distro/collabora/cp-6.4 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #15 from Ioannis --- Danilo, thank you for getting me to this direction. I downloaded the libreoffice source code and think I found the file where the buggy code is: libreoffice/sal/osl/unx/tempfile.cxx Checking the "sign document" behaviour, I saw that after the first error pops up, if I touch the reported file in /tmp instead of the path suggested, no more error popups come out! It seems that the temporary file in question should be created as /tmp/lu.tmp instead of being searched in the PDF location path. So, I guess that the problem is the way the prepended path is handled in the suspicious file (libreoffice/sal/osl/unx/tempfile.cxx). -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #14 from Danilo Šegan --- Another data point: signing works with older LibreOffice version (LibreOffice 6.3.6.2 2196df99b074d8a661f4036fca8fa0cbfa33a497) from https://downloadarchive.documentfoundation.org/libreoffice/old/6.3.6.2/deb/x86_64/LibreOffice_6.3.6.2_Linux_x86-64_deb.tar.gz I guess people can use this as a work-around. (And I'll stop spamming now :)) -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #13 from Danilo Šegan --- And I have a strong suspicion is that the error being thrown is ERRCODE_IO_NOTEXISTS (error message matches) — https://cgit.freedesktop.org/libreoffice/core/tree/uui/inc/ids.hrc#n83 Forgot to mention that the number of times a pop-up shows up seems to depend on the PDF file size (on smaller PDF file like http://africau.edu/images/default/sample.pdf, I only got it twice). -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #12 from Danilo Šegan --- I've started following the tempfile creation logic would guess some tempfile creation logic around https://cgit.freedesktop.org/libreoffice/core/tree/xmlsecurity/source/helper/documentsignaturemanager.cxx#n227 https://cgit.freedesktop.org/libreoffice/core/tree/xmlsecurity/source/helper/pdfsignaturehelper.cxx#n123 https://cgit.freedesktop.org/libreoffice/core/tree/unotools/source/ucbhelper/ucbstreamhelper.cxx#n46 is related, but for someone unfamiliar with LibreOffice code and without a dev environment, it's hard to test any hypothesis, and it's quickly turning into a rabbit hole. Is there a debug build for x64 Linux system with which I can see SAL_INFO/SAL_WARN messages on the console? FWIW, my Firefox has a security token device set up (AET SafeSign smart card), but signing an ODF file works well, so the problem seems to strictly be in some of the temp streams being created and then wrong file paths being used. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #11 from Danilo Šegan --- There seem to be a problem somewhere in tempfile generation when attempting to start digital signing. I've also tried LibreOffice 7.0alpha1 (LibreOfficeDev 7.0.0.0.alpha1 6a03b2a54143a9bc0c6d4c7f190b77cdc5a14733) and it behaves the same as LibreOffice 6.4.3 on Ubuntu 20.04 and the 18.04 (LibreOffice 6.4.3.2 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8). Attempting to sign *any* existing PDF works behaves exactly the same: * libreoffice6.4 --view /tmp/a.pdf * Click on "Sign document" * I get a pop-up saying "/tmp/lu12004kv2p7v.tmp does not exist" * Without closing the pop-up, I can see a /tmp/lu12004kv2p7t.tmp directory containing lu12004kv2p7u.tmp file — note how it complains about not finding path with "v" in the name, there is a directory with "t" containing a file with "u". * After closing it, it pops-up another 4 times with exactly the same message (for a total of 5 times). * Attempting to re-sign it seems to use the same temporary file paths (i.e. the pop-up message remains the same). (FWIW, attempting to "touch /tmp/lu12004kv2p7v.tmp" or "mkdir /tmp/lu12004kv2p7v.tmp" does not make it continue working, but it was probably already too late to "fix it up", i.e. the file handle is open already) -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #10 from Timur --- Reporter akrathod used GPG anf that's likely a duplicate. moritz and Robert said "the same", but without conforming the cert. Ioannis, I didn't understand, you say you sign with X509 and bug happens after that, when you just open in Draw, or sign again, please clarify. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #9 from ioannis.herbert.papadopou...@gmail.com --- Let me give more details: - I use LibreOffice 6.4 - I create an ODT file with Write: foo.odt - I export it to PDF which I sign with my x509 certificate: foo.pdf - I check foo.pdf using e.g. Adobe acrobat on another computer, and the signature is OK. - I open foo.pdf with LibreOffice Draw, and face the errors I described in my previous comment. I remember having problems with pdf files in the past, trying to add an access password, and it was related to "policy" issues not allowing to access the pdf file. Could the signing problem be due to something like this? -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #8 from Timur --- AFAIK, since I used that a long ago, PDF sign works with X509 and not with GPG/OpenPGP. Bug 113278 and Bug 115884. Either I miss something or you reported and confirmed a duplicate. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 ioannis.herbert.papadopou...@gmail.com changed: What|Removed |Added CC||ioannis.herbert.papadopoulo ||s...@gmail.com --- Comment #7 from ioannis.herbert.papadopou...@gmail.com --- Created attachment 161038 --> https://bugs.documentfoundation.org/attachment.cgi?id=161038=edit libreoffice draw screenshot with the error I get I am also affected by the bug. I cannot sign an existing PDF. Furthermore, I cannot view existing digital signatures, although LO Draw reports: "This document is digitally signed and the signature is valid". In the attached PNG, you can see the error I get when I click on "Show Signatures". Regards, Yannis For me, "lsb_release -a" gives LSB Version:core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch Distributor ID: Ubuntu Description:Ubuntu 20.04 LTS Release:20.04 Codename: focal and "dpkg -l | grep '^ii *libreoffice'" gives libreoffice-base 1:6.4.3-0ubuntu0.20.04.1 libreoffice-base-core 1:6.4.3-0ubuntu0.20.04.1 libreoffice-base-drivers 1:6.4.3-0ubuntu0.20.04.1 libreoffice-calc 1:6.4.3-0ubuntu0.20.04.1 libreoffice-common 1:6.4.3-0ubuntu0.20.04.1 libreoffice-core 1:6.4.3-0ubuntu0.20.04.1 libreoffice-draw 1:6.4.3-0ubuntu0.20.04.1 libreoffice-emailmerge 1:5.0.3~rc2-0ubuntu1~trusty2 libreoffice-gnome 1:6.4.3-0ubuntu0.20.04.1 libreoffice-gtk2 1:6.4.3-0ubuntu0.20.04.1 libreoffice-gtk3 1:6.4.3-0ubuntu0.20.04.1 libreoffice-help-common 1:6.4.3-0ubuntu0.20.04.1 libreoffice-help-en-gb 1:6.4.3-0ubuntu0.20.04.1 libreoffice-help-en-us 1:6.4.3-0ubuntu0.20.04.1 libreoffice-impress 1:6.4.3-0ubuntu0.20.04.1 libreoffice-java-common 1:6.4.3-0ubuntu0.20.04.1 libreoffice-l10n-en-gb 1:6.4.3-0ubuntu0.20.04.1 libreoffice-l10n-en-za 1:6.4.3-0ubuntu0.20.04.1 libreoffice-math 1:6.4.3-0ubuntu0.20.04.1 libreoffice-ogltrans 1:6.4.3-0ubuntu0.20.04.1 libreoffice-pdfimport 1:6.4.3-0ubuntu0.20.04.1 libreoffice-presentation-minimizer 1:5.0.3~rc2-0ubuntu1~trusty2 libreoffice-presenter-console 1:5.0.3~rc2-0ubuntu1~trusty2 libreoffice-sdbc-firebird 1:6.4.3-0ubuntu0.20.04.1 libreoffice-style-breeze 1:6.4.3-0ubuntu0.20.04.1 libreoffice-style-colibre 1:6.4.3-0ubuntu0.20.04.1 libreoffice-style-elementary 1:6.4.3-0ubuntu0.20.04.1 libreoffice-style-tango 1:6.4.3-0ubuntu0.20.04.1 libreoffice-writer 1:6.4.3-0ubuntu0.20.04.1 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #6 from Robert --- I experience the same bug on Opensuse Tumbleweed with PDFs generated with LaTeX and any other PDF I tried. Information for package libreoffice-draw: - Repository : openSUSE-Tumbleweed-Oss Name : libreoffice-draw Version: 6.4.3.2-1.2 Arch : x86_64 Vendor : openSUSE Installed Size : 583.0 KiB Installed : Yes Status : up-to-date Source package : libreoffice-6.4.3.2-1.2.src Summary: LibreOffice Draw -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Dieter changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #5 from Dieter --- (In reply to moritz.herrmann from comment #3) > Hi, > I have the same problem on arch linux. > If I try to sign a just exported pdf file I'll get the same error. => NEW -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #4 from moritz.herrm...@siemens.com --- Created attachment 158381 --> https://bugs.documentfoundation.org/attachment.cgi?id=158381=edit sign test -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #3 from moritz.herrm...@siemens.com --- Hi, I have the same problem on arch linux. If I try to sign a just exported pdf file I'll get the same error. Version: 6.4.1.2 Build ID: 6.4.1-1 CPU threads: 8; OS: Linux 5.5; UI render: default; VCL: kf5; Locale: de-DE (en_US.UTF-8); UI-Language: en-US -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 akrat...@protonmail.com changed: What|Removed |Added Ever confirmed|1 |0 Status|NEEDINFO|UNCONFIRMED -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 --- Comment #2 from akrat...@protonmail.com --- Created attachment 157991 --> https://bugs.documentfoundation.org/attachment.cgi?id=157991=edit Sample of the hybrid PDF which i could not sign using a As requested, I have added a sample PDF that i created in LibreOffice 6.3.2. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 iantheprogrammer changed: What|Removed |Added Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1 Whiteboard| QA:needsComment| --- Comment #1 from iantheprogrammer --- Thank you for reporting the bug. Please attach a sample PDF, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided. (Note that the attachment will be public, remove any sensitive information before attaching it. See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for further details.) -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 QA Administrators changed: What|Removed |Added Whiteboard|| QA:needsComment -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 130354] Cannot sign existing PDF
https://bugs.documentfoundation.org/show_bug.cgi?id=130354 Dieter changed: What|Removed |Added CC||dgp-m...@gmx.de Component|Writer |Printing and PDF export -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs