|Summary:||All .asc files are recognized as OpenPGP files|
|Product:||shared-mime-info||Reporter:||Jérémy Bobbio <lunar>|
|Component:||freedesktop.org.xml||Assignee:||Shared Mime Info group <shared_mime_info>|
|Status:||RESOLVED FIXED||QA Contact:|
|i915 platform:||i915 features:|
Example encrypted message .asc file detected as plain text
Description Jérémy Bobbio 2013-10-16 16:30:22 UTC
Created attachment 87741 [details] [review] patch v1 I made a mistake in 2c3438c. As all weights are currently equal for *.asc files, we now recognize unrelated files as OpenPGP stuff. The attached patch fixed the issue in my tests.
Comment 1 Tails developers 2013-10-21 16:13:41 UTC
We tested this patch and it works as expected when used in the context of GNOME Seahorse.
Comment 2 Jérémy Bobbio 2013-12-03 08:46:56 UTC
Comment 3 Bastien Nocera 2013-12-13 15:48:20 UTC
commit 4f33cfd52a4a794f9dfeb2e53b788780d5d3f1c5 Author: Jérémy Bobbio <email@example.com> Date: Wed Oct 16 11:12:28 2013 +0200 Do not recognize all .asc files as application/pgp-encrypted The change introduced in 2c3438c had the unfortunate effect of having all .asc be identified as application/pgp-encrypted. As this should only happen when we can identify armor headers, we now give a lower weight than text/plain to the *.asc glob for OpenPGP MIME types. https://bugs.freedesktop.org/show_bug.cgi?id=70539
Comment 4 rewarp 2015-05-15 01:27:00 UTC
Created attachment 115788 [details] Example encrypted message .asc file detected as plain text
Comment 5 rewarp 2015-05-15 01:33:06 UTC
I have a *.asc encrypted message that is detected as plain-text. I was told to file a bug report here from the KDE bug tracker. https://bugs.kde.org/show_bug.cgi?id=346754#c5 To summarise, the file that I have attached is opened as a plain text file by default. I removed *.asc association with plain-text files to get it recognised as a GPG-encrypted message. Re-adding *.asc as a recognised filetype for plain-text documents returns the erroneous recognition.
Comment 6 rewarp 2015-05-15 01:34:48 UTC
Sorry. I am going to file a new bug report instead.