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
PGP decrypting mails, but body still shows encrypted message
Moderator: crythias
PGP decrypting mails, but body still shows encrypted message
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.
Re: PGP decrypting mails, but body still shows encrypted mes
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
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

Re: PGP decrypting mails, but body still shows encrypted mes
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! 

Re: PGP decrypting mails, but body still shows encrypted mes
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},
--- 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},
-
- 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
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
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