Invalid link in ticket

Moderator: crythias

Locked
schulmann
Znuny wizard
Posts: 477
Joined: 20 Nov 2011, 16:08
Znuny Version: 6.5.11
Real Name: Schulmann

Invalid link in ticket

Post by schulmann »

Hi,

there is an unintelligible behaviour when creating tickets by email.

The shell commands below create two mails which are sent to OTRS (OTRS 3.3.5 on openSUSE Linux 13.1) so two tickets are generated.
The only difference between these mails is the MIME Content-ID.

The web link in the first ticket doesn't point to the intended target.
The second one is all right.
What is going wrong?

Code: Select all

for id in '' 1
do
(
 cat <<'EOF'
MIME-Version: 1.0
Subject: Test
From: tutnichtszursache@xyz.invalid
To: irgendwas@xyz.invalid
Content-Type: multipart/mixed; boundary="=_mixed 0123456789012345_="

--=_mixed 0123456789012345_=
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8
EOF
 echo "Content-ID: <$id>"
 cat <<'EOF'

Link: <a href="http://www.invalid">http://www.invalid</a>
--=_mixed 0123456789012345_=--
EOF
) | ~otrs/bin/otrs.PostMaster.pl
done
Znuny6/Debian/ESXi
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Invalid link in ticket

Post by jojo »

I can not see any ticket here
"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: Invalid link in ticket

Post by reneeb »

Im not sure if an empty content-id is allowed... but the fix is easy: https://github.com/OTRS/otrs/pull/65
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
schulmann
Znuny wizard
Posts: 477
Joined: 20 Nov 2011, 16:08
Znuny Version: 6.5.11
Real Name: Schulmann

Re: Invalid link in ticket

Post by schulmann »

reneeb wrote:Im not sure if an empty content-id is allowed... but the fix is easy: https://github.com/OTRS/otrs/pull/65
Hi Renée,

thank you very much.

I also don't know if the content-id may be empty but sometimes it appears in real life.

In my test system your suggestion works when omitting the label in Kernel/Output/HTML/Layout.pm (otrs-3.3.5-02.noarch.rpm on openSUSE 13.1):

Code: Select all

next if !$Param{Attachments}->{$AttachmentID}->{ContentID};
Claus-Dieter
Znuny6/Debian/ESXi
Locked