Summary | Error opening pgp passphrase protected mails |
Queue | IMP |
Queue Version | 4.2 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) , slusarz (at) horde (dot) org |
Requester | xk3 (at) mompl (dot) org |
Created | 06/04/2008 (6237 days ago) |
Due | |
Updated | 02/04/2009 (5992 days ago) |
Assigned | 06/10/2008 (6231 days ago) |
Resolved | 06/13/2008 (6228 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
bug #7926.bug #7926, just with pgp.php, not message.php.We have see this problem after upgrading to 4.3.3. We have verified
that if we downgrade back to 4.3.2 the problem doesn't occur and if we
upgrade back to 4.3.3 we get the problem again.
State ⇒ Resolved
http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.699.2.310&r2=1.699.2.311&ty=u
http://cvs.horde.org/diff.php/imp/js/popup.js?r1=1.3.2.7&r2=1.3.2.8&ty=u
http://cvs.horde.org/diff.php/imp/js/src/popup.js?r1=1.2.2.5&r2=1.2.2.6&ty=u
http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.1138&r2=1.1139&ty=u
http://cvs.horde.org/diff.php/imp/js/popup.js?r1=1.8&r2=1.9&ty=u
http://cvs.horde.org/diff.php/imp/js/src/popup.js?r1=1.7&r2=1.8&ty=u
browser), I found following tag containing mailbox and index in
question:
<input type="hidden" name="reload"
value="/mail-new/imp/message.php?mailbox=INBOX.Drafts%26index=127" />
Parsing this by IMP::getCurrentMailboxInfo() in imp/lib/base.php gave:
[mailbox] => INBOX.Drafts&index=127
[thismailbox] => INBOX.Drafts&index=127
[index] =>
which seems to be wrong (and results in the error message), as normal
calling of this message should result in (?):
[mailbox] => INBOX.Drafts
[thismailbox] => INBOX.Drafts
[index] => 127
Hunting down the ampersand and changing in gpg.php with the sledgehammer
// $t->set('reload', htmlspecialchars(Util::getFormData('reload')));
$t->set('reload', preg_replace('/%26/', '&',
htmlspecialchars(Util::getFormData('reload')),-1) );
fixed the symptom, but I don“t know where exactly the cause is.
Martin
State ⇒ Feedback
can do to debug this remotely. This doesn't happen to me so you will
need to trace the error on your system.
Assigned to
State ⇒ Assigned
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Error opening pgp passphrase protected mails
Type ⇒ Bug
encrypted with pgp passphrases (sending to myself, so no external tools
involved).
Opening such a mail, I get asked for the passphrase. Independent of its
correctness, I get the following error message:
Error: Requested message not found.
Mail :: SELF?=91
There are no messages in this mailbox.
(and there is a funny eastern character after the name of the mailbox)
Navigating to that message again, IMP either displays the decrypted message
or notices me about a bad key, which seems to be correct.
Martin