Problem with Forward Attachments

Moderator: crythias

Locked
schimmelpfeng
Znuny newbie
Posts: 25
Joined: 10 Nov 2011, 19:02
Znuny Version: 3.3.3
Real Name: Leandro
Company: Quatro Seniors

Problem with Forward Attachments

Post by schimmelpfeng »

Hello all,

Im having a problem with otrs 3.1.4
When my agents forward one ticket with attachments (imageXX.jpg), this attachment just disapear, all the other attachment files still there (*.pdf, *.doc, etc).
If one ticket have a more than one file attached (file.pdf, file.doc, image01.jpg) , everything appears nice, only image01.jpg disapear.
Following the ScreenShot in attachment.
attachment1.jpg
attachment2.jpg
Anyone know why this happens?
You do not have the required permissions to view the files attached to this post.
OTRS 3.3 + OTRS 3.2 + OTRS 3.1 + OTRS 3.0 + FreeBSD + MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with Forward Attachments

Post by jojo »

please upgrade to the latest version of 3.1 (3.1.8)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
schimmelpfeng
Znuny newbie
Posts: 25
Joined: 10 Nov 2011, 19:02
Znuny Version: 3.3.3
Real Name: Leandro
Company: Quatro Seniors

Re: Problem with Forward Attachments

Post by schimmelpfeng »

Thanks for reply jojo

This is a bug in 3.1.4?
OTRS 3.3 + OTRS 3.2 + OTRS 3.1 + OTRS 3.0 + FreeBSD + MySQL
schimmelpfeng
Znuny newbie
Posts: 25
Joined: 10 Nov 2011, 19:02
Znuny Version: 3.3.3
Real Name: Leandro
Company: Quatro Seniors

Re: Problem with Forward Attachments

Post by schimmelpfeng »

Ok, i can solve the problem, without update to the new version.
Thanks again.
OTRS 3.3 + OTRS 3.2 + OTRS 3.1 + OTRS 3.0 + FreeBSD + MySQL
risker
Znuny newbie
Posts: 91
Joined: 21 Jan 2008, 08:16
Znuny Version: Kein OTRS
Real Name: Oliver Skibbe
Company: MDKN
Location: Hannover
Contact:

Re: Problem with Forward Attachments

Post by risker »

Would you mind to tell how you solved that problem?
1. OTRS Version: 3.0.12
Module: FAQ, extended TimeAccounting (supports Projects), SystemMonitoring, ITSM, Support
Server: Apache/2.0.55 (Ubuntu 10.04) PHP/5.2.6 mod_ssl/2.2.9 OpenSSL/0.9.8a mod_perl/2.0.4 Perl/v5.8.7.

ImageCIPHRON Security, Communications & Engineering
ImageCIPHRON OTRS Unterstützung & Dienstleistungen
schimmelpfeng
Znuny newbie
Posts: 25
Joined: 10 Nov 2011, 19:02
Znuny Version: 3.3.3
Real Name: Leandro
Company: Quatro Seniors

Re: Problem with Forward Attachments

Post by schimmelpfeng »

Ok. Sorry about that!!

I edited the otrs/Kernel/Modules/AgentTicketForward.pm

I search for image and edit:


# remove unused inline images
my @NewAttachmentData;
for my $Attachment (@AttachmentData) {
my $ContentID = $Attachment->{ContentID};
# if ( $ContentID && ( $Attachment->{ContentType} =~ /image/i ) ) {
if ( $ContentID && ( $Attachment->{ContentType} =~ /some_name_here/i ) ) {
my $ContentIDHTMLQuote = $Self->{LayoutObject}->Ascii2Html(
Text => $ContentID,
);#


and here.

# show attachments
for my $Attachment ( @{ $Param{Attachments} } ) {
if (
$Attachment->{ContentID}
&& $Self->{LayoutObject}->{BrowserRichText}
&& ( $Attachment->{ContentType} =~ /some_name_here/i )
# && ( $Attachment->{ContentType} =~ /image/i )
)

I hope nobody try to attach file with som_name_here ;)

Thanks for all, and sorry for dalay ;)
OTRS 3.3 + OTRS 3.2 + OTRS 3.1 + OTRS 3.0 + FreeBSD + MySQL
pensions2c
Znuny newbie
Posts: 11
Joined: 18 Jun 2013, 10:35
Znuny Version: 3.2 and 5
Real Name: Bureau 2C
Company: Service des Retraites de l'Etat
Location: France

Re: Problem with Forward Attachments

Post by pensions2c »

Thank you for this solution
it works also with otrs 3.2.9

is it normal to correct the code ?
what about the 3.3 version ?
pensions2c
Znuny newbie
Posts: 11
Joined: 18 Jun 2013, 10:35
Znuny Version: 3.2 and 5
Real Name: Bureau 2C
Company: Service des Retraites de l'Etat
Location: France

Re: Problem with Forward Attachments

Post by pensions2c »

Hi,

I am now using the 3.2.11 version and it is the same problem !!!!

Attachment of jpg does'nt work,
except if i use a text editor and delete the content-id line in the source of the message before using otrs.

Is it possible to do something (cleaner) !

Thank you

MD
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with Forward Attachments

Post by jojo »

open a bug. or use another mailclient
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with Forward Attachments

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked