Page MenuHome GnuPG
Feed Advanced Search

Sep 5 2020

werner triaged T5053: More gpg arguments available for use with gpgtar as Normal priority.
Sep 5 2020, 12:35 PM · gnupg24, gnupg (gpg23), gpgtar, Feature Request

Aug 27 2020

werner closed T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work as Resolved.
Aug 27 2020, 3:04 PM · Bug Report, gpg4win, kleopatra, gpgtar
werner closed T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names. as Resolved.
Aug 27 2020, 2:24 PM · gnupg (gpg22), Feature Request, gpgtar

Aug 24 2020

werner added a comment to T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.

What is the current encoding? OEMCP ?

Aug 24 2020, 9:35 AM · Bug Report, gpg4win, kleopatra, gpgtar
aheinecke claimed T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.

So if gnupg version >= 2.2.22 Kleopatra needs to convert the passed filenames to UTF-8 and pass them with the --utf8-strings option to gpgtar. This needs to be changed in Kleo. -> Assigned to me.

Aug 24 2020, 9:11 AM · Bug Report, gpg4win, kleopatra, gpgtar

Aug 22 2020

werner added a comment to T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names..

Unicode file names will now also work - see T4083 and T5030

Aug 22 2020, 11:11 PM · gnupg (gpg22), Feature Request, gpgtar
Romans10910 added a comment to T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names..

Excellent! thanks for having considered this.

Aug 22 2020, 6:40 PM · gnupg (gpg22), Feature Request, gpgtar
werner added a comment to T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.

Done for master and 2.2.22 - libgpg-error 1.39 (not yet released) is required for the actual fix.

Aug 22 2020, 2:39 PM · Bug Report, gpg4win, kleopatra, gpgtar

Aug 20 2020

werner closed T3772: gpg-zip fails with recipient names that have whitespace in them as Wontfix.
Aug 20 2020, 4:01 PM · gpgtar, Bug Report
werner changed the status of T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names. from Open to Testing.

The options now work as documented. More tests on Window are required and eventually we need to handle non-ascii characters in file names.

Aug 20 2020, 3:56 PM · gnupg (gpg22), Feature Request, gpgtar
werner claimed T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names..
Aug 20 2020, 12:42 PM · gnupg (gpg22), Feature Request, gpgtar

Aug 18 2020

werner renamed T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names. from Unable to use "--files-from" to gpgtar's "--files-from" should also handle a LF terminated list of file names..
Aug 18 2020, 11:57 AM · gnupg (gpg22), Feature Request, gpgtar
werner added a project to T5027: gpgtar's "--files-from" should also handle a LF terminated list of file names.: gpgtar.

It is indeed a limitation. We added these options to support the Kleopatra GUI. To avoid problems with filenames with embedded newlines etc. Kleoptra uses a binary nuls to delimit filenames. And that is what we only support.

Aug 18 2020, 11:56 AM · gnupg (gpg22), Feature Request, gpgtar

Dec 16 2019

aheinecke merged T4730: GpgEX: "No such file or directory" when trying to encrypt files inside unicode directories into T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.
Dec 16 2019, 5:56 PM · Bug Report, gpg4win, kleopatra, gpgtar

Jun 4 2019

Xanatos added a comment to T4554: gpgtar invalid octal number.

I did forget to mention that the key I'm using is 4096 bit long

Jun 4 2019, 4:34 PM · gpgtar, Bug Report, gpg4win
Xanatos added a comment to T4554: gpgtar invalid octal number.

I was creating a tar archive with 7-Zip on my Windows 10 machine. After the creating was completed I was encrypting the archive like so:

Jun 4 2019, 4:27 PM · gpgtar, Bug Report, gpg4win
aheinecke added a comment to T4554: gpgtar invalid octal number.

Just to clarify, you were able to decrypt and extract it without error? Which tool did you use to extract the tar archive?

Jun 4 2019, 3:58 PM · gpgtar, Bug Report, gpg4win
Xanatos added a comment to T4554: gpgtar invalid octal number.

I did encrypt the file myself with the version mentioned above.

Jun 4 2019, 8:58 AM · gpgtar, Bug Report, gpg4win

Jun 3 2019

aheinecke triaged T4554: gpgtar invalid octal number as Normal priority.

Maybe the file was encrypted with a version of gpg4win-3.1.5? We had a serious bug there that sometimes files were corrupted. See: T4332

Jun 3 2019, 4:20 PM · gpgtar, Bug Report, gpg4win
Xanatos created T4554: gpgtar invalid octal number.
Jun 3 2019, 4:15 PM · gpgtar, Bug Report, gpg4win

Mar 6 2019

werner created T4394: Use I/O callbacks in gpgtar .
Mar 6 2019, 6:01 PM · gnupg (gpg22), gpgtar

Jan 14 2019

aheinecke merged T4320: tar archive encryption failed with japanese characters into T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.
Jan 14 2019, 7:51 AM · Bug Report, gpg4win, kleopatra, gpgtar

Jul 17 2018

aheinecke created T4083: gpgtar, Kleopatra: Unicode filenames that are not native 8 bit on Windows don't work.
Jul 17 2018, 6:00 PM · Bug Report, gpg4win, kleopatra, gpgtar

Mar 13 2018

werner added a comment to T3772: gpg-zip fails with recipient names that have whitespace in them.

(BTW, --create is not an option - you meant --encrypt)

Mar 13 2018, 11:01 AM · gpgtar, Bug Report
werner triaged T3772: gpg-zip fails with recipient names that have whitespace in them as Normal priority.

That is not easy to fix in a shell script. I would prefer to get rid of gpg-zip or make it a simple wrapper around gpgtar like

Mar 13 2018, 11:00 AM · gpgtar, Bug Report

Nov 15 2017

werner added a comment to T3500: Gpgtar creates dirs named "-_1_" when decrypting from stdin.

FWIW, I added a gpgtar.1

Nov 15 2017, 10:28 AM · gnupg (gpg22), gpg4win, gpgtar, Bug Report
aheinecke closed T3500: Gpgtar creates dirs named "-_1_" when decrypting from stdin as Resolved.

Pushed to 2.2

Nov 15 2017, 10:25 AM · gnupg (gpg22), gpg4win, gpgtar, Bug Report
werner added a comment to T3500: Gpgtar creates dirs named "-_1_" when decrypting from stdin.

You could use the --directory option. However< I agree that your suggested changes is less surprising then the current behaviour. Thus I would consider this a bug fix. Can you please apply to 2.2?

Nov 15 2017, 9:20 AM · gnupg (gpg22), gpg4win, gpgtar, Bug Report

Nov 14 2017

aheinecke created T3500: Gpgtar creates dirs named "-_1_" when decrypting from stdin.
Nov 14 2017, 2:19 PM · gnupg (gpg22), gpg4win, gpgtar, Bug Report

Jul 27 2017

marcus closed T2687: 98 chars limits on archived filenames for windows (gpgtar) as Wontfix.

To remain compatible with PGP6 we are limited to ustar. If you want to support other archive types, archive first and then encrypt/sign the archive.

Jul 27 2017, 5:33 PM · gpgtar, gpg4win, Bug Report

Mar 30 2017

admin created gpgtar.
Mar 30 2017, 6:42 PM

Sep 19 2016

bernhard updated subscribers of T2687: 98 chars limits on archived filenames for windows (gpgtar).

@werner, if I understand the description at
https://www.gnu.org/software/tar/manual/html_section/tar_68.html
then ustar would also be able to read "posix" archives.

Sep 19 2016, 8:36 AM · gpgtar, gpg4win, Bug Report
werner added a comment to T2687: 98 chars limits on archived filenames for windows (gpgtar).

ustar is the format introduced by PGP 6; also for Windows. This is the only
reason we use it. PGP users demanded that we support that "pgpzip". We can't
drop it.

Sep 19 2016, 8:19 AM · gpgtar, gpg4win, Bug Report

Sep 15 2016

aheinecke added a comment to T2687: 98 chars limits on archived filenames for windows (gpgtar).

What I meant by "KArchive" is that we already have all that nice archiving code
in Kleopatra already: https://api.kde.org/frameworks/karchive/html/index.html
To work with standard formats like tar / zip / 7zip etc.

This would get us the included platform abstraction through Qt for stuff like
filenames etc. and we wouldn't have to maintain our own implementations for
these archive formats.

Sep 15 2016, 11:55 AM · gpgtar, gpg4win, Bug Report
bernhard added a comment to T2687: 98 chars limits on archived filenames for windows (gpgtar).

Can you create a new issue with the data "loss" part?

As for the default format:
I think we should use and propose a default format that is mostly compatible
over platforms (and robust in the future). tar "posix" seems to be
such a format. Am not sure how this evaluates for karchive or 7zip.

Sep 15 2016, 11:47 AM · gpgtar, gpg4win, Bug Report
bernhard updated subscribers of T2687: 98 chars limits on archived filenames for windows (gpgtar).
Sep 15 2016, 11:47 AM · gpgtar, gpg4win, Bug Report
aheinecke added a project to T2687: 98 chars limits on archived filenames for windows (gpgtar): Bug Report.
Sep 15 2016, 9:49 AM · gpgtar, gpg4win, Bug Report
aheinecke added a comment to T2687: 98 chars limits on archived filenames for windows (gpgtar).

https://www.gnu.org/software/tar/manual/html_section/tar_68.html gives a good
overview imo.

So yes raising the file name length limit could be problematic with
compatibility and we might have to change more in our implementation to create
formats of a different spec.

From the discussion in the forum it looks like the error was silently discarded
when used in Kleopatra. We need error handling in that case. So I think this is
an Urgent bug as silent discard of archive contents can lead to data loss. So
for me this part is an urgent bug. Actually handling longer filenames is another
issue.

As a sidenote:
Kleopatra already links KArchive for svgz handling so it already contains a good
API for ZIP file creation. I'd like to add that to Kleopatra and make it default
so that the default is not our own error prone tar implementation. (Other tar
implementations also are problematic for windows). In that case we could also
drop the extraction as zip file support is native in the windows file explorer.

And as suggested in the forum entry we should probably also document how to add
7zip support to kleopatra or check for this at runtime and add some 7zip archive
options if it is available.
This should be doable by editing libkleopatrarc but I'd have to check the syntax
myself in the code as its not documented afaik.

Sep 15 2016, 9:49 AM · gpgtar, gpg4win, Bug Report
aheinecke removed a project from T2687: 98 chars limits on archived filenames for windows (gpgtar): Feature Request.
Sep 15 2016, 9:49 AM · gpgtar, gpg4win, Bug Report
aheinecke raised the priority of T2687: 98 chars limits on archived filenames for windows (gpgtar) from Wishlist to High.
Sep 15 2016, 9:49 AM · gpgtar, gpg4win, Bug Report
bernhard added a comment to T2687: 98 chars limits on archived filenames for windows (gpgtar).

I'm unsure about the compatibility issues with using a higher filename-length
limit.

Sep 15 2016, 9:31 AM · gpgtar, gpg4win, Bug Report
bernhard added projects to T2687: 98 chars limits on archived filenames for windows (gpgtar): gpg4win, Feature Request, gpgtar.
Sep 15 2016, 9:30 AM · gpgtar, gpg4win, Bug Report
bernhard updated subscribers of T2687: 98 chars limits on archived filenames for windows (gpgtar).
Sep 15 2016, 9:30 AM · gpgtar, gpg4win, Bug Report

Mar 17 2015

werner closed T1926: Gpgtar produces corrupt binaries as Resolved.
Mar 17 2015, 12:05 PM · Bug Report, gnupg, gpgtar
werner added a comment to T1926: Gpgtar produces corrupt binaries.

Pushed your patch to master and 2.0. Thanks.

Mar 17 2015, 12:05 PM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

Mar 17 2015, 11:11 AM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

And the testscript I used to test this.

Mar 17 2015, 11:11 AM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

D289: 587_0001-gpgtar-Fix-extracting-files-with-size-512.patch

Mar 17 2015, 11:10 AM · Bug Report, gnupg, gpgtar
aheinecke reassigned T1926: Gpgtar produces corrupt binaries from aheinecke to werner.
Mar 17 2015, 11:10 AM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

In gpgtar-extract.c extract_regular

  for (n=0; n < hdr->nrecords;)
    {
      err = read_record (stream, record);
      if (err)
        goto leave;
      n++;
      nbytes = (n < hdr->nrecords)? RECORDSIZE : (hdr->size % RECORDSIZE);

^ this does not work for the last header if hdr->size size is a multiple of 512.
In that case the last record will not be written.

Please check my attached patch which fixes the problem.

Mar 17 2015, 11:10 AM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

To further minimize the test case:

dd if=/dev/urandom of=testfile count=1024 bs=1024
./gpgtar --encrypt --skip-crypto -- testfile > test.tar
./gpgtar --decrypt --skip-crypto -- test.tar
diff ./test.tar_1_/testfile ./testfile

Binary files ./test.tar_1_/testfile and ./testfile differ

last 512 bytes of testfile are missing after extracting it with gpgtar.

Mar 17 2015, 10:08 AM · Bug Report, gnupg, gpgtar
aheinecke changed Version from 2.0.27 to master on T1926: Gpgtar produces corrupt binaries.
Mar 17 2015, 9:51 AM · Bug Report, gnupg, gpgtar
aheinecke renamed T1926: Gpgtar produces corrupt binaries from Gpgtar / Kleopatra on Windows produces corrupt binaries to Gpgtar produces corrupt binaries.
Mar 17 2015, 9:51 AM · Bug Report, gnupg, gpgtar
aheinecke removed a project from T1926: Gpgtar produces corrupt binaries: gpg4win.
Mar 17 2015, 9:51 AM · Bug Report, gnupg, gpgtar
aheinecke added a comment to T1926: Gpgtar produces corrupt binaries.

Further tracked this problem down to be a gpgtar extraction issue.

Calling gpgtar on the decrypted archive with the same command kleopatra uses:

C:\Users\aheinecke\Desktop>type gpg-archive.tar |"c:\Program
Files\GNU\GnuPG\gpgtar.exe" --openpgp --skip-crypto --set-filename
C:/Users/aheinecke/Desktop/gpg-archive.tar.gpg --decrypt -- -

Produces the corrupted binary. Copying this archive to a GNU/Linux system and
extracting the tarball with GNU Tar produces a valid binary.

Next test on GNU/Linux with:

./gpgtar --version

gpgtar (GnuPG) 2.1.3-beta4

./gpgtar --openpgp --skip-crypto \

--set-filename /home/aheinecke/arbeit/gpg4win/gpg-archive.tar.gpg \
--decrypt -- /home/aheinecke/arbeit/gpg4win/gpg-archive.tar

sha1sum gpg-archive.tar_1_/gpg2.exe

2d387c8fb53d105c31e4cc2ec186e70a365b0c65 gpg-archive.tar_1_/gpg2.exe

tar -fx /home/aheinecke/arbeit/gpg4win/gpg-archive.tar
sha1sum gpg2.exe

54c8c2ec1083943e556255f76ff8f58e623c5b27 gpg2.exe

The second one is correct.

Mar 17 2015, 9:51 AM · Bug Report, gnupg, gpgtar
aheinecke set Version to 2.0.27 on T1926: Gpgtar produces corrupt binaries.
Mar 17 2015, 9:26 AM · Bug Report, gnupg, gpgtar
aheinecke added projects to T1926: Gpgtar produces corrupt binaries: gpg4win, gpgtar, gnupg, Bug Report.
Mar 17 2015, 9:26 AM · Bug Report, gnupg, gpgtar

Nov 28 2014

aheinecke changed Version from gpg4win 2.2.2 to gpg4win 2.2.3 on T1624: Gpgtar fails when files have non ASCII characters.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added a project to T1624: Gpgtar fails when files have non ASCII characters: gpa.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
boehmtho added a comment to T1624: Gpgtar fails when files have non ASCII characters.

I did install gpg4win 2.2.3 which does include the fix for Umlaut. I prefer to
use GPA as frontend for encryption and decryption. For decryption, I did link
.gpg to be always opened with GPA. Unfortunatly if the File or Path to the .gpg
has an Umlaut included the GPA GUI crashes. Only if I use the open button from
GPA the file can be added to the GPA frontend and decrypted. For non-umlaut
files the link to open .gpg works fine. Do you also work on GPA bugs or do I
have to report this under the GPA category?
Thank you & regards,

Nov 28 2014, 2:56 PM · gnupg, Windows 32, Windows, Bug Report

Oct 27 2014

aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

Oct 27 2014, 7:34 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

The error is now handled by Kleopatra:

http://commits.kde.org/kdepim/2a58b4cb452cdb132553c2381ce810bbc2606e55

I'm a bit scared of regressions, though as the Input handling is so
"generalized" in kleo that I don't know if I now broke cases where input errors
are expected :-/

Attached is a screenshot how it looks now with a broken gpgtar version. And
files are no longer deleted as the operation is no longer thought to be successful.

Oct 27 2014, 7:34 PM · gnupg, Windows 32, Windows, Bug Report

Oct 24 2014

aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

D192: 523_0001-Fix-gpgtar-8-bit-encoding-handling-on-Win32.patch

Oct 24 2014, 6:18 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

Werner: Please see attached Patch.

I've tested this with kleopatra and it works now to encrypt a folder which has
special characters in the local code page in filenames. And tested it on the
command line.

This should improve the status quo a lot as full utf16 file names are rarer and
gpgtar / gpg4win is not the only tool which has problems with utf16 filenames ;-)

I did not go for proper unicode support because this would mean:

  1. Convert all command line arguments from native to utf8. (Or even to expect

them to be utf-16 *brr*)

  1. Expect files-from / stdio file names to be utf8 encoded (and update the callers)
  2. Use wide char file io functions. Which would add lots of #ifdefs.

But we would have to discuss if we should do 2. also on non-Windows systems.
Currently gpgtar expects local 8 bit encoding there. So tools using gpgtar would
have to convert their arguments differently for Windows.

Oct 24 2014, 6:18 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke reassigned T1624: Gpgtar fails when files have non ASCII characters from aheinecke to werner.
Oct 24 2014, 6:18 PM · gnupg, Windows 32, Windows, Bug Report
boehmtho added a comment to T1624: Gpgtar fails when files have non ASCII characters.

Thank you for working on this problem. I also use GPA 0.9.4 for Windows as gpg
frontend. Would be great if the fix will make the file encryption working with
umlaut also in GPA and kleopatra.

Thank you & Regards
boehmtho

Oct 24 2014, 9:58 AM · gnupg, Windows 32, Windows, Bug Report

Oct 23 2014

aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

gpgtar correctly returns an exit code != 0 in case an error happens. This exit
code is eaten by kleopatra so the problem that success is reported on error is
on kleos side.

But gpgtar has the encoding problems. From the kleopatra side it looks ok file
names are handed over to gpgtar in local 8 bit encoding and not in utf-8. And
even directly on the command line it fails.

C:\Users\aheinecke\Desktop>"c:\Program Files\GNU\GnuPG\gpgtar.exe" --skip-crypto
--verbose -o c:\Users\aheinecke\Desktop\test.tar -e fäil.txt
gpgtar: error stat-ing `fΣil.txt': The system cannot find the file specified.

The problem is that internally gpgtar treats argument file names as UTF-8 and
even converts the return value from syscalls like findfirstfile to UTF-8 before
opening them. The open uses the utf8 encoded filename and fails as the file
system usually does not use utf8 file names on Windows.

A workaround would be to convert to ACP (CP_ACP (afaik ACP is correct for
filenames)) instead of converting to UTF-8. But this will not work for ?
but as gpgex and kleopatra already fail earlier on "Non 8 bit representable
characters" this should be acceptable for now.

So two fixes need to be done:

  • Use system 8 bit encoding for open in gpgtar. -> Should fix most problems
  • Handle the return value of gpgtar correctly and escalate it to the user in

kleopatra.

  -> Should make the rest of the problems "uncritical"

I hope to get this done tomorrow evening.

Oct 23 2014, 7:06 PM · gnupg, Windows 32, Windows, Bug Report
bernhard renamed T1624: Gpgtar fails when files have non ASCII characters from gpgex does not work with umlaut to file encryption: gpgex and gpgtar does not work with umlaut.
Oct 23 2014, 11:45 AM · gnupg, Windows 32, Windows, Bug Report

Sep 12 2014

aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

accidentally removed the original reporter from the nosy. Sorry (readded)

Sep 12 2014, 2:41 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added projects to T1624: Gpgtar fails when files have non ASCII characters: Windows, gpgtar, Windows 32.
Sep 12 2014, 2:38 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke claimed T1624: Gpgtar fails when files have non ASCII characters.
Sep 12 2014, 2:38 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke updated subscribers of T1624: Gpgtar fails when files have non ASCII characters.
Sep 12 2014, 2:38 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke changed Version from gpg4win 2.2.1 to gpg4win 2.2.2 on T1624: Gpgtar fails when files have non ASCII characters.
Sep 12 2014, 2:38 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke raised the priority of T1624: Gpgtar fails when files have non ASCII characters from High to Unbreak Now!.
Sep 12 2014, 2:38 PM · gnupg, Windows 32, Windows, Bug Report

Apr 19 2013

werner lowered the priority of T1362: gpg2 process hangs on permission problem (Windows) from High to Normal.
Apr 19 2013, 4:45 PM · gpgtar, Bug Report, gnupg, gpg4win
werner added a project to T1362: gpg2 process hangs on permission problem (Windows): gpgtar.
Apr 19 2013, 4:44 PM · gpgtar, Bug Report, gnupg, gpg4win