After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 458809 - MIME type of .asc files
MIME type of .asc files
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
1.0.1
Other All
: Normal minor
: 2.20.0
Assigned To: Seahorse Maintainer
Seahorse Maintainer
: 459330 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-07-20 22:30 UTC by Iain Nicol
Modified: 2012-03-15 12:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
add .asc glob for application/pgp-keys (389 bytes, patch)
2007-07-21 16:01 UTC, Iain Nicol
rejected Details | Review

Description Iain Nicol 2007-07-20 22:30:33 UTC
Please describe the problem:
Because of the file extension with which public keys are exported (.asc), a public key cannot be exported from Seahorse then imported via Nautilus.

Steps to reproduce:
1. Open up the main Seahorse program
2. Export a public key from one of your private keys, keeping the default extension
3. Double click the file you exported in Nautilus


Actual results:
Nautilus produces an error message, saying the extension of the file does not match the contents of the file (it guesses from the extension that the file's MIME type is application/pgp-encrypted, but the file is actually of type application/pgp-keys).

Expected results:
Seahorse will try to import the public key (not much will happen though because you already have the private key for that public key)

Does this happen every time?
Yes

Other information:
I can think of two solutions, but I'm not sure which is best:

1. Seahorse should export public keys with the extension ".pkr" by default
2. the MIME database entry should be changed to recognise that .asc files can be either application/pgp-keys or application/pgp-encrypted, and not just the latter.
Comment 1 Adam Schreiber 2007-07-21 02:11:16 UTC
A bug with a patch has been filed with freedesktop.org.

https://bugs.freedesktop.org/show_bug.cgi?id=11680 
Comment 2 Iain Nicol 2007-07-21 16:01:22 UTC
Created attachment 92126 [details] [review]
add .asc glob for application/pgp-keys

That was a quick response :). Seahorse ships its own MIME entries, presumably for people who don't have the freedesktop database, so this tiny patch adds the glob locally.
Comment 3 Adam Schreiber 2007-07-23 01:51:44 UTC
*** Bug 459330 has been marked as a duplicate of this bug. ***
Comment 4 Adam Schreiber 2007-07-23 01:53:48 UTC
Seahorse ships its own mime entries because freedesktop.org didn't provide the others until recently.  The idea is that we won't have to ship our own at all and they should be deleted.  I'm going to leave this bug open to remind me to delete them.
Comment 5 Pablo Castellano (IRC: pablog) 2009-11-04 12:07:13 UTC
Ping
Comment 6 Duncan Lithgow 2009-11-30 11:10:26 UTC
This bug is also reported downstream at Launchpad / Ubuntu: https://bugs.edge.launchpad.net/seahorse/+bug/248479
Comment 7 Otto Kekäläinen 2010-01-13 14:33:32 UTC
I remember that opening .asc files in Nautilus worked in previous releases of Ubuntu. ''This bug is an regression.''

Besides Seahorse, this issue also affects Evolution: if somebody sends me mail with encrypted files attached (shoots me with caff for example), the files won't be opened/imported to Seahorse with a simple click like it used to. Now (Ubuntu 9.10) I need to manually save the files from an e-mail in Evolution and then run gpg --import from the command line for the files. Really annoying regression for me..
Comment 8 Stef Walter 2012-03-15 10:05:22 UTC
The Gcr library now ships mime files (in 3.2 and 3.4) which I believe fix these issues. Please reopen if you still see problem, and I'll work with you to try and figure out the issue, and whether we can fix it or not.
Comment 9 Otto Kekäläinen 2012-03-15 12:21:18 UTC
I just tried it, and it does still not work.

I'm running Ubuntu 11.10 with Gnome Shell and all the newest updates. 

Package: libgcr-3-1
Version: 3.2.2-0ubuntu0.1

I'll try again once I have upgraded to Gnome 3.4.
Comment 10 Stef Walter 2012-03-15 12:46:30 UTC
Thanks.