[Tickets #10809] Re: Bug in decrypting PGP-messages in imp

bugs at horde.org bugs at horde.org
Mon Dec 5 10:36:50 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/10809
------------------------------------------------------------------------------
  Ticket           | 10809
  Aktualisiert Von | stephan at admin.nabira.de
  Zusammenfassung  | Bug in decrypting PGP-messages in imp
  Warteschlange    | IMP
  Version          | 5.0.15
  Typ              | Bug
  Status           | Feedback
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


stephan at admin.nabira.de (2011-12-05 10:36) hat geschrieben:

I had not as much time as I would have liked to investigate, but at  
least I know this by now:

The error becomes manifest on line 378 in file  
imp/lib/Mime/Viewer/Pgp.php where getMetadata() fails since the  
variable the should be a Horde_Mime_Part is NULL. This is the case  
since  $this->getConfigParam('imp_contents')->getMIMEPart($sig_id);  
results NULL a few lines before.

I inserted the following line for more information about the object involved:

Horde::logMessage('Variable: ' .
                 $sig_id . ' - ' .
                 var_export(  
$this->getConfigParam('imp_contents')->getTree() , true )
                 , Horde_Log::NOTICE);

This logs as follows:

2011-12-04T23:20:42+00:00 NOTICE: HORDE [imp] Variable: 3.2 -
Horde_Core_Tree_Html::__set_state(array(
    '_images' =>
   array (
     'line' => 1,
     'blank' => '',
     'join' => 2,
     'join_bottom' => 4,
     'join_top' => 3,
     'plus' => 10,
     'plus_bottom' => 11,
     'plus_only' => 12,
     'minus' => 6,
     'minus_bottom' => 7,
     'minus_only' => 8,
     'null_only' => 13,
     'folder' => 14,
     'folderopen' => 15,
     'leaf' => 16,
   ),
    '_node_pos' =>
   array (
   ),
    '_dropline' =>
   array (
   ),
    '_altCount' => 0,
    '_allowed' =>
   array (
     0 => 'class',
     1 => 'icon',
     2 => 'iconalt',
     3 => 'iconopen',
     4 => 'url',
     5 => 'urlclass',
     6 => 'title',
     7 => 'target',
   ),
    '_instance' => 'mime-44',
    '_header' =>
   array (
   ),
    '_nodes' =>
   array (
     0 =>
     array (
       'label' => 'Encrypted-Nachrichtenteil (4 KB) ',
       'expanded' => true,
       'class' => 'partsTreeDiv',
       'icon' => '/horde/themes/silver/graphics/mime/encryption.png',
       'children' =>
       array (
         0 => '1',
         1 => '2',
         2 => '3',
       ),
     ),
     1 =>
     array (
       'label' => 'Pgp-encrypted-Nachrichtenteil (1 KB) <a  
href="/horde/services/download/?module=imp&amp;actionID=download_attach&amp;id=1&amp;uid=44&amp;mailbox=SU5CT1guWjpLZWVw&amp;fn=%2F" class="iconImg downloadAtc" target="view_c5a5646e66de90e04d5d253f906b4fce"  
title="Herunterladen"></a>',
       'expanded' => true,
       'class' => 'partsTreeDiv',
       'icon' => '/horde/themes/silver/graphics/mime/encryption.png',
     ),
     2 =>
     array (
       'label' => '<a  
onclick="void(Horde.popup(\'%7B%22url%22%3A%22%5C%2Fhorde%5C%2Fimp%5C%2Fview.php%22%2C%22menu%22%3A1%2C%22params%22%3A%22autodetect%3D1%26actionID%3Dview_attach%26id%3D2%26uid%3D44%26mailbox%3DSU5CT1guWjpLZWVw%22%7D\'));" title="Octet-stream-Nachrichtenteil anzeigen">Octet-stream-Nachrichtenteil</a> (3 KB) <a href="/horde/services/download/?module=imp&amp;actionID=download_attach&amp;id=2&amp;uid=44&amp;mailbox=SU5CT1guWjpLZWVw&amp;fn=%2F" class="iconImg downloadAtc" target="view_810784d836d921f732433c9718a05812"  
title="Herunterladen"></a>',
       'expanded' => true,
       'class' => 'partsTreeDiv',
       'icon' => '/horde/themes/silver/graphics/mime/binary.png',
     ),
     3 =>
     array (
       'label' => 'Signed-Nachrichtenteil (1 KB) ',
       'expanded' => true,
       'class' => 'partsTreeDiv',
       'icon' => '/horde/themes/silver/graphics/mime/encryption.png',
       'children' =>
       array (
         0 => '3.1',
       ),
     ),
     '3.1' =>
     array (
       'label' => 'signature.asc (1 KB) <a  
href="/horde/services/download/?module=imp&amp;actionID=download_attach&amp;id=3.1&amp;uid=44&amp;mailbox=SU5CT1guWjpLZWVw&amp;fn=%2Fsignature.asc" class="iconImg downloadAtc" target="view_8b128f6be45facb705df7d8b586fa4af"  
title="Herunterladen"></a>',
       'expanded' => true,
       'class' => 'partsTreeDiv',
       'icon' => '/horde/themes/silver/graphics/mime/encryption.png',
     ),
   ),
    '_root_nodes' =>
   array (
     0 => '0',
   ),
    '_colsLeft' => 0,
    '_colsRight' => 0,
    '_options' =>
   array (
     'lines' => true,
     'nosession' => true,
   ),
    '_sortCriteria' => NULL,
    '_static' => false,
))


Do you have any idea why the MIMEpart may not exist?
Here the source of the message for reference:

Return-Path: <bjoern.wiedersheim at uni-ulm.de>
Received: ...
	 by poseidon (Cyrus v2.3.14) with LMTPA;
	 Wed, 20 Oct 2010 12:30:41 +0200
X-Sieve: CMU Sieve 2.3
Received: from stella ...
	by ...
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <stephan.kleber at ...
Date: Wed, 20 Oct 2010 12:30:35 +0200
From: ...
To: Stephan Kleber <stephan.kleber at ...
Subject: ...
Message-ID: <20101020123035.19c23241 at stella>
Organization: =?ISO-8859-1?B?VW5pdmVyc2l05HQ=?= Ulm
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/encrypted;  
boundary="Encrypt_/tBF.7GiOGOrrodg9BGSUSXM";
  protocol="application/pgp-encrypted"
X-DCC-dmv.com-Metrics: poseidon 1181; Body=1 Fuz1=1
X-Virus-Scanned: by amavisd-new

--Encrypt_/tBF.7GiOGOrrodg9BGSUSXM
Content-Type: application/pgp-encrypted

Version: 1

--Encrypt_/tBF.7GiOGOrrodg9BGSUSXM
Content-Type: application/octet-stream

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.10 (GNU/Linux)

...
-----END PGP MESSAGE-----

--Encrypt_/tBF.7GiOGOrrodg9BGSUSXM--






More information about the bugs mailing list