PGP decrypting mails, but body still shows encrypted message

Moderator: crythias

Locked
yyotrs
Znuny newbie
Posts: 4
Joined: 30 Aug 2013, 02:50
Znuny Version: 3.2.10

PGP decrypting mails, but body still shows encrypted message

Post by yyotrs »

I am using OTRS 3.2.10 on ubuntu, installed using the installation guide http://wiki.otterhub.org/?title=Install ... ynx_(10.4)

I set up PGP using the instructions here: http://doc.otrs.org/3.1/en/html/configure-pgp.html

When encrypted messages come in, it decrypts them, but still shows me the encrypted, ASCII-Armored data. I verified this by inserting prints in /opt/otrs/Kernel/Output/HTML/ArticleCheckPGP.pm, and even more strange I can use OTRS's web search and find the decrypted messages, but when I bring up the emails the Body still shows the encrypted text (See attachment)

Has anyone else experienced this? OR anyone have any ideas on what I can do to fix this?

Thanks,
yy
You do not have the required permissions to view the files attached to this post.
Last edited by yyotrs on 30 Aug 2013, 03:46, edited 1 time in total.
yyotrs
Znuny newbie
Posts: 4
Joined: 30 Aug 2013, 02:50
Znuny Version: 3.2.10

Re: PGP decrypting mails, but body still shows encrypted mes

Post by yyotrs »

also if i do:

mysql> SELECT a_body FROM article;

it shows me the decrypted content of my messages, but the OTRS web interface still shows the encrypted -----BEGIN PGP MESSAGE----- bodies :(
yyotrs
Znuny newbie
Posts: 4
Joined: 30 Aug 2013, 02:50
Znuny Version: 3.2.10

Re: PGP decrypting mails, but body still shows encrypted mes

Post by yyotrs »

if i disable the rich text editor, some of the views show the decrypted text, but the Zoom Ticket view is still showing the HTML version of the text, which is encrypted! :o
yyotrs
Znuny newbie
Posts: 4
Joined: 30 Aug 2013, 02:50
Znuny Version: 3.2.10

Re: PGP decrypting mails, but body still shows encrypted mes

Post by yyotrs »

fix here:

--- ArticleCheckPGP.pm 2013-08-27 09:14:00.000000000 +0000
+++ /opt/otrs/Kernel/Output/HTML/ArticleCheckPGP.pm 2013-08-31 09:09:55.739962183 +0000
@@ -73,6 +73,11 @@
$Self->{Result} = \%Decrypt;
$Param{Article}->{Body} = $Decrypt{Data};

+ my $Success = $Self->{TicketObject}->ArticleDeleteAttachment(
+ ArticleID => $Self->{ArticleID},
+ UserID => $Self->{UserID},
+ );
+
# updated article body
$Self->{TicketObject}->ArticleUpdate(
TicketID => $Param{Article}->{TicketID},
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: PGP decrypting mails, but body still shows encrypted mes

Post by crythias »

submit a pull request on github
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked