gpgtarProject
ActivePublic

Members

  • This project does not have any members.

Watchers

  • This project does not have any watchers.

Recent Activity

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 · 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
aheinecke added a commit to T3500: Gpgtar creates dirs named "-_1_" when decrypting from stdin: rG878b8bfdcc3a: gpgtar: Prefer --set-filename over implicit name.
Nov 15 2017, 9:57 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