Red Hat Bugzilla – Bug 238429
Incorrect detection of multiple plaintexts
Last modified: 2010-10-22 10:38:28 EDT
+++ This bug was initially created as a clone of Bug #234087 +++
Description of problem:
When decrypting multiple GPG encrypted files with --multifile --decrypt (or
--decrypt-files), I get "gpg: WARNING: multiple plaintexts seen" warnings for
all but the first file in the list. Furthermore, decryption fails with the
message "gpg: handle plaintext failed: unexpected data" on all but the first
file unless I give it the --allow-multiple-messages option. But even then, I
still get the warning messages.
All files in the list have been encrypted with gnupg, verified with 'file' as
"GPG encrypted data", and are not plain text.
Version-Release number of selected component (if applicable):
gpg (GnuPG) 1.4.7
Steps to Reproduce:
1. Create a subdir with several files.
2. Encrypt all files in the subdir with gnupg; remove originals
3. Attept to decrypt all files at once with 'gpg --multifile --decrypt *'
Only the first file in the shell expansion list of '*' gets decrypted. The rest
generate the warning message "gpg: WARNING: multiple plaintexts seen" ans well
as a line indicating that decryption failed. Using --allow-multiple-messages
will cause the files to be decrypted, but the warning message persists.
All files decrypted successfully with no warnings or errors.
-- Additional comment from firstname.lastname@example.org on 2007-04-16 23:09 EST --
Created an attachment (id=152736)
Here's a patch. It'll be in 1.4.8.
-- Additional comment from email@example.com on 2007-04-17 14:07 EST --
Just tested patch -- works fine. Thanks!
Created attachment 153795 [details]
Patch for gnupg-1.2.6-9 copied from bz 234087
Regression noticed after upgrading from 'gnupg-1.2.6-8'to 'gnupg-1.2.6-9".
This bugzilla has Keywords: Regression.
Since no regressions are allowed between releases,
it is also being proposed as a blocker for this release.
Please resolve ASAP.
The issue is cosmetic: decryption works with the --allow-multiple-messages