GNU bug report logs - #37454
EPA (The EasyPG Assistant) problems saving .tar.gpg files

Previous Next

Package: emacs;

Reported by: Andrea Cardaci <cyrus.and <at> gmail.com>

Date: Wed, 18 Sep 2019 23:32:02 UTC

Severity: normal

Tags: confirmed

Merged with 28622

Found in version 25.1

To reply to this bug, email your comments to 37454 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37454; Package emacs. (Wed, 18 Sep 2019 23:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrea Cardaci <cyrus.and <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 18 Sep 2019 23:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrea Cardaci <cyrus.and <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: EPA (The EasyPG Assistant) problems saving .tar.gpg files
Date: Thu, 19 Sep 2019 01:31:34 +0200
As the subject says. Here is how to reproduce this;

1. start Emacs with `emacs -Q`;

2. find a new file, e.g., `C-x C-f /tmp/test.tar.gpg`;

3. the buffer is in `tar-mode`, create an empty file with `I`;

4. save the Tar buffer `C-x C-s`;

5. the `*Keys*` buffer pops up, mark one key and press the "OK" button.

Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
is still there (that doesn't happen for regular .gpg files) and a
recursive edit is in progress (there are square brackets around the
major modes).

This is already weird per se, but most importantly the saved file is
just a text file containing the textual content of the Tar buffer:

    $ gpg -d test.tar.gpg
     -rw-r--r--       0/0             0 test

Since the `*Keys*` buffer is still there, trying to mark the key and
pressing the "OK" button again causes the file to be saved again and
exits from the recursive editing, the file has the same content yet
different permissions:

    -rw-r--r-- 1 cyrus cyrus    613 Sep 19 01:19 test.tar.gpg

instead of the previous (and correct):

    -rw------- 1 cyrus cyrus    613 Sep 19 01:14 test.tar.gpg

My Emacs version is the following:

    GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4)
of 2019-02-03, modified by Debian

I'm afraid I cannot try a newer version right now. Please let me know
if you need additional information.


Best,
Andrea




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37454; Package emacs. (Mon, 09 Dec 2019 12:49:01 GMT) Full text and rfc822 format available.

Message #8 received at 37454 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Cardaci <cyrus.and <at> gmail.com>
To: 37454 <at> debbugs.gnu.org
Subject: Re: EPA (The EasyPG Assistant) problems saving .tar.gpg files
Date: Mon, 9 Dec 2019 13:47:36 +0100
On Thu, 19 Sep 2019 at 01:31, Andrea Cardaci <cyrus.and <at> gmail.com> wrote:
> Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
> is still there (that doesn't happen for regular .gpg files) and a
> recursive edit is in progress (there are square brackets around the
> major modes).

At least this has been fixed in Emacs 27:

> GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-12-04




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37454; Package emacs. (Mon, 03 Aug 2020 07:37:01 GMT) Full text and rfc822 format available.

Message #11 received at 37454 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrea Cardaci <cyrus.and <at> gmail.com>
Cc: 37454 <at> debbugs.gnu.org
Subject: Re: bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg
 files
Date: Mon, 03 Aug 2020 09:36:47 +0200
Andrea Cardaci <cyrus.and <at> gmail.com> writes:

> On Thu, 19 Sep 2019 at 01:31, Andrea Cardaci <cyrus.and <at> gmail.com> wrote:
>> Now a message says "Wrote /tmp/test.tar.gpg" but the `*Keys*` buffer
>> is still there (that doesn't happen for regular .gpg files) and a
>> recursive edit is in progress (there are square brackets around the
>> major modes).
>
> At least this has been fixed in Emacs 27:

I tried the recipe in Emacs 28.1, and I'm not able to reproduce the bugs
as described -- I get an encrypted file that's saved.

file /tmp/test4.tar.gpg
/tmp/test4.tar.gpg: GPG symmetrically encrypted data (AES256 cipher)

However, when loading the back again, after displaying the contents, I
get:

Parsing tar file... 
File mode specification error: (error Malformed Tar header)

So there's still some bugs in this area, apparently...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37454; Package emacs. (Mon, 03 Aug 2020 07:41:01 GMT) Full text and rfc822 format available.

Message #14 received at 37454 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrea Cardaci <cyrus.and <at> gmail.com>
Cc: 37454 <at> debbugs.gnu.org
Subject: Re: bug#37454: EPA (The EasyPG Assistant) problems saving .tar.gpg
 files
Date: Mon, 03 Aug 2020 09:39:54 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> However, when loading the back again, after displaying the contents, I
> get:
>
> Parsing tar file... 
> File mode specification error: (error Malformed Tar header)
>
> So there's still some bugs in this area, apparently...

Sorry; I misinterpreted what Emacs was showing me -- the bug is exactly
as you described: The contents of the encrypted file isn't the tar data,
but what Emacs displayed in the buffer.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 03 Aug 2020 07:41:02 GMT) Full text and rfc822 format available.

Forcibly Merged 28622 37454. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 10:21:01 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.