Page MenuHome GnuPG

gpgtarProject
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers

  • This project does not have any watchers.
  • View All

Recent Activity

Wed, Apr 17

werner lowered the priority of T6853: GpgTar: S/MIME decryption fails with input/output error from High to Normal.

Nobody uses gpgtar for S/MIME

Wed, Apr 17, 5:20 PM · gnupg, gpgtar, vsd33, Restricted Project

Mar 19 2024

ikloecker added projects to T6853: GpgTar: S/MIME decryption fails with input/output error: gpgtar, gnupg.

What happens if you call gpgtar with --utf8-strings --cms additionally to the other options? And what happens if you pipe the archive to gpgtar's stdin?

Mar 19 2024, 10:43 AM · gnupg, gpgtar, vsd33, Restricted Project

Jan 5 2024

werner moved T6558: gpgtar: Does not stop spawned gpg process when exiting from Backlog to done on the gnupg24 board.
Jan 5 2024, 12:02 PM · gnupg24, Restricted Project, gpgtar, Bug Report

Oct 18 2023

ebo closed T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID as Invalid.

The original issue was to unclear to analyse and it was likely meanwhile fixed. For the other issue see the follow up ticket.

Oct 18 2023, 2:02 PM · gpg4win, kleopatra, gpgtar, Restricted Project
aheinecke added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

I mean this would also be solved if we did not use qiodevicedataprovider but pass the filenames directly to gpg for single files, too. (can't remember the ticket number) but I don't want to do that right now.

Oct 18 2023, 1:28 PM · gpg4win, kleopatra, gpgtar, Restricted Project
aheinecke added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

The original issue was about creating an encrypted archive. This code doesn't use Qt anymore for writing the result file, but delegates this to gpgtar.

Oct 18 2023, 1:27 PM · gpg4win, kleopatra, gpgtar, Restricted Project
aheinecke added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

That sounds like a solid conclusion. I mean if errno is not set explicitly it is basically undefined which value it is, so maybe some other function set errno to no space left on device in that one case where it "worked".

Oct 18 2023, 1:24 PM · gpg4win, kleopatra, gpgtar, Restricted Project
ikloecker added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

The original issue was about creating an encrypted archive. This code doesn't use Qt anymore for writing the result file, but delegates this to gpgtar.

Oct 18 2023, 12:34 PM · gpg4win, kleopatra, gpgtar, Restricted Project
TobiasFella added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

I've debugged Eva's problem and I think it's unrelated to the original problem, as it's specific to qt.

Oct 18 2023, 11:44 AM · gpg4win, kleopatra, gpgtar, Restricted Project

Oct 13 2023

ebo added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

As what I see is similar as what Andre saw, I'll describe it here. Please check if this is relevant.
After the above mentioned Ticket was resolved, I tried the exact same encryption in Kleopatra on the same Test-VM.

Oct 13 2023, 12:35 PM · gpg4win, kleopatra, gpgtar, Restricted Project

Sep 6 2023

werner claimed T6556: gpgtar: Removes existing output file on error.
Sep 6 2023, 8:07 PM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
werner added a comment to T6556: gpgtar: Removes existing output file on error.

That should be easy on Unix but on Windows we have the nul nul: and iirc also /dev/nul.

Sep 6 2023, 8:07 PM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
ikloecker added a comment to T6556: gpgtar: Removes existing output file on error.

@iklocker: Which gpg bug to you mean?

Sep 6 2023, 3:44 PM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
werner added a comment to T6556: gpgtar: Removes existing output file on error.

@iklocker: Which gpg bug to you mean?

Sep 6 2023, 2:21 PM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report

Sep 1 2023

thesamesam added a comment to T6556: gpgtar: Removes existing output file on error.

Thanks. For the record, done at https://lists.gnupg.org/pipermail/gnupg-users/2023-August/066692.html.

Sep 1 2023, 5:15 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report

Aug 23 2023

ikloecker added a comment to T6556: gpgtar: Removes existing output file on error.

It may be better to open a separate issue for the issue in gpg, so that it's not overlooked/forgotten when the issue in gpgtar is fixed.

Aug 23 2023, 10:06 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
AndrewAmmerlaan added a comment to T6556: gpgtar: Removes existing output file on error.

That is intentional. If we are able to remove a file we do it. Solution for you is easy: gpg .... -o - </dev/null >/dev/null

Aug 23 2023, 10:06 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
werner added a comment to T6556: gpgtar: Removes existing output file on error.

That is intentional. If we are able to remove a file we do it. Solution for you is easy: gpg .... -o - </dev/null >/dev/null

Aug 23 2023, 9:58 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
AndrewAmmerlaan added a comment to T6556: gpgtar: Removes existing output file on error.

This looks like the same problem I encountered in Gentoo's Portage. To unlock the binary package signing key, Portage will run the equivalent of gpg --homedir ... --digest-algo ... --local-user ... --output /dev/null /dev/null. If unlocking fails (due to e.g. wrong password), /dev/null is removed: https://bugs.gentoo.org/912808

Aug 23 2023, 9:38 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report

Aug 17 2023

ikloecker added a comment to T6554: Kleopatra: Reports success when gpgtar is kill with SIGTERM or SIGKILL while folder is encrypted.

Yes, gpgtar emits a SUCCESS status. gpgme should probably check for this.

Aug 17 2023, 2:24 PM · gpgme, kleopatra, gpgtar, Restricted Project, Bug Report

Aug 4 2023

aheinecke closed T6525: Kleopatra: Gpgtar progress label needs to be generalized or updated as Resolved.

Works for me.

Aug 4 2023, 11:40 AM · Restricted Project, gpgtar, kleopatra

Jul 12 2023

aheinecke lowered the priority of T6531: Gpgtar behavioral change when extracting archives from Unbreak Now! to Normal.

Normal priority to get the _1_ removed when no folder with the same name already exists in that location.

Jul 12 2023, 5:12 PM · Restricted Project, kleopatra, gpgtar
aheinecke moved T6531: Gpgtar behavioral change when extracting archives from Restricted Project Column to Restricted Project Column on the Restricted Project board.

Strangely enough this does not happen on linux. Maybe related to the KMime changes we have there?

Jul 12 2023, 4:05 PM · Restricted Project, kleopatra, gpgtar
aheinecke claimed T6531: Gpgtar behavioral change when extracting archives.
Jul 12 2023, 9:29 AM · Restricted Project, kleopatra, gpgtar
aheinecke reopened T6531: Gpgtar behavioral change when extracting archives as "Open".

For S/MIME archives the output for e.g. testfolder.tar.gz.p7m is now named "testfolder.tar.gz_1_/testfolder" with the "_1_" even added if there is no "archive.tar.gz"

Jul 12 2023, 9:26 AM · Restricted Project, kleopatra, gpgtar

Jul 6 2023

ebo closed T6531: Gpgtar behavioral change when extracting archives as Resolved.

works. So gpgtar obviously knows about the filenames now, too

Jul 6 2023, 2:52 PM · Restricted Project, kleopatra, gpgtar

Jun 26 2023

ikloecker closed T6558: gpgtar: Does not stop spawned gpg process when exiting as Invalid.

Closing since the problem doesn't seem to occur if the operation is canceled properly.

Jun 26 2023, 12:15 PM · gnupg24, Restricted Project, gpgtar, Bug Report
ikloecker added a comment to T6558: gpgtar: Does not stop spawned gpg process when exiting.

Sorry about that. I tested an old build which didn't call gpgme_cancel_async and therefore probably didn't properly close the channels. It seems to work if gpgme_cancel_async is called to cancel the operation.

Jun 26 2023, 12:03 PM · gnupg24, Restricted Project, gpgtar, Bug Report
ikloecker added a comment to T6558: gpgtar: Does not stop spawned gpg process when exiting.

This option is already used. Running pgrep -a gpg in a loop (and ignoring gpg-agent processes) I get:

Mo 26. Jun 11:29:11 CEST 2023
19111 gpgtar --batch --status-fd 60 --gpg-args --no-tty --gpg-args --charset=utf8 --gpg-args --enable-progress-filter --gpg-args --exit-on-status-write-error --gpg-args --display=:0 --gpg-args --ttyname=/dev/pts/37 --gpg-args --ttytype=xterm-256color --decrypt --directory /tmp/kleopatra-JqIiXu/src -- /home/ingo/dev/g10/src.tar.gpg
19112 gpg --batch --status-fd=60 --output - --decrypt --no-tty --charset=utf8 --enable-progress-filter --exit-on-status-write-error --display=:0 --ttyname=/dev/pts/37 --ttytype=xterm-256color -- /home/ingo/dev/g10/src.tar.gpg
Jun 26 2023, 11:34 AM · gnupg24, Restricted Project, gpgtar, Bug Report
werner triaged T6558: gpgtar: Does not stop spawned gpg process when exiting as Normal priority.

Can you please test by adding --exit-on-status-write-error to the gpg invocation by gpgtar?

Jun 26 2023, 9:50 AM · gnupg24, Restricted Project, gpgtar, Bug Report

Jun 23 2023

ikloecker created T6558: gpgtar: Does not stop spawned gpg process when exiting.
Jun 23 2023, 4:33 PM · gnupg24, Restricted Project, gpgtar, Bug Report
ikloecker changed the status of T6531: Gpgtar behavioral change when extracting archives from Open to Testing.

Should be fixed.

Jun 23 2023, 3:55 PM · Restricted Project, kleopatra, gpgtar
ikloecker moved T6531: Gpgtar behavioral change when extracting archives from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Jun 23 2023, 10:13 AM · Restricted Project, kleopatra, gpgtar
ikloecker added a project to T6531: Gpgtar behavioral change when extracting archives: Restricted Project.
Jun 23 2023, 10:13 AM · Restricted Project, kleopatra, gpgtar
werner triaged T6556: gpgtar: Removes existing output file on error as Normal priority.
Jun 23 2023, 10:10 AM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report

Jun 22 2023

ikloecker created T6556: gpgtar: Removes existing output file on error.
Jun 22 2023, 5:44 PM · gnupg22, gnupg24, Restricted Project, gpgtar, Bug Report
werner triaged T6554: Kleopatra: Reports success when gpgtar is kill with SIGTERM or SIGKILL while folder is encrypted as Normal priority.

Due to the double fork in gpgme we won't get the exit code which gpgtar emits. Possible actions in a signal handler are also limited; in particular we can't use stdio or estream. The only option to print a status line would we by using write directly. However, this might mess with the libassuan buffering. Thus, it is not a good idea to pkill gpgtar. Same is true for gpg and gpgsm.

Jun 22 2023, 4:30 PM · gpgme, kleopatra, gpgtar, Restricted Project, Bug Report
ikloecker renamed T6554: Kleopatra: Reports success when gpgtar is kill with SIGTERM or SIGKILL while folder is encrypted from Kleopatra: Reports success when gpgtar is kill with SIGTERM while folder is encrypted to Kleopatra: Reports success when gpgtar is kill with SIGTERM or SIGKILL while folder is encrypted.
Jun 22 2023, 4:29 PM · gpgme, kleopatra, gpgtar, Restricted Project, Bug Report
ikloecker created T6554: Kleopatra: Reports success when gpgtar is kill with SIGTERM or SIGKILL while folder is encrypted.
Jun 22 2023, 4:17 PM · gpgme, kleopatra, gpgtar, Restricted Project, Bug Report

Jun 12 2023

aheinecke added a comment to T6531: Gpgtar behavioral change when extracting archives.

In the past this was done by --set-filename in libkleopatrarc-win32.desktop. But I am happy if we close this and focus on T6530.

Jun 12 2023, 3:46 PM · Restricted Project, kleopatra, gpgtar
ikloecker added a comment to T6531: Gpgtar behavioral change when extracting archives.

Which only works if gpgtar actually knows the input file name (which it will once T6530: GPGME / QGpgME Extend Archivejobs to accept input / output from a filename is done and used).

Jun 12 2023, 3:23 PM · Restricted Project, kleopatra, gpgtar
werner added projects to T6531: Gpgtar behavioral change when extracting archives: gpgtar, kleopatra.
Jun 12 2023, 3:21 PM · Restricted Project, kleopatra, gpgtar

Jun 9 2023

ikloecker changed the status of T6524: Kleopatra / Gpgtar: Cancel does not kill the job from Open to Testing.
Jun 9 2023, 5:34 PM · Restricted Project, kleopatra
ikloecker moved T6525: Kleopatra: Gpgtar progress label needs to be generalized or updated from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Jun 9 2023, 5:34 PM · Restricted Project, gpgtar, kleopatra
ikloecker added a project to T6525: Kleopatra: Gpgtar progress label needs to be generalized or updated: Restricted Project.
Jun 9 2023, 5:32 PM · Restricted Project, gpgtar, kleopatra
ikloecker claimed T6524: Kleopatra / Gpgtar: Cancel does not kill the job.

Of course, those are different controllers. :-)

Jun 9 2023, 4:54 PM · Restricted Project, kleopatra
aheinecke changed the status of T6524: Kleopatra / Gpgtar: Cancel does not kill the job from Testing to Open.

As I already had my testsetup open I recompiled with your change and I tested manually cancelling and letting it run into the disk full error. In both cases the temporary file was deleted and the job was cancelled :)

Jun 9 2023, 4:36 PM · Restricted Project, kleopatra
ikloecker changed the status of T6524: Kleopatra / Gpgtar: Cancel does not kill the job from Open to Testing.
Jun 9 2023, 3:56 PM · Restricted Project, kleopatra
ikloecker added a comment to T6524: Kleopatra / Gpgtar: Cancel does not kill the job.

The processes should now be killed properly.

Jun 9 2023, 3:36 PM · Restricted Project, kleopatra
aheinecke added a comment to T6526: Kleopatra / Gpgtar: Windows write error ERROR_FILE_INVALID.

Please note that my test was not on an USB Device. I will keep this issue with your analysis and reopen a different one with my error and details on how to reproduce that one. Pretty sure it was disk full.

Jun 9 2023, 2:10 PM · gpg4win, kleopatra, gpgtar, Restricted Project