attachment not found (404)

Moderator: crythias

Locked
Alukardd
Znuny newbie
Posts: 19
Joined: 03 Jul 2012, 16:03
Znuny Version: 3.1.6
Real Name: Alexey

attachment not found (404)

Post by Alukardd »

Hello.
I found the next bug (maybe only in my configuration problem) — when I get ticket with attachments I can't download it — I get 404 Error from my web server.
I found that URL is incorrect: line look like "http://otrs.***/index.pl/test.file?Action=AgentTicketAttachment;ArticleID=286;FileID=2", where test.file is attachment name. Then if I manual modify this URL to "http://otrs.***/index.pl?Action=AgentTicketAttachment;ArticleID=286;FileID=2" the file download fine!

What I can I modify in my configuration or source scripts to make otrs work fine?..
Alukardd
Znuny newbie
Posts: 19
Joined: 03 Jul 2012, 16:03
Znuny Version: 3.1.6
Real Name: Alexey

Re: attachment not found (404)

Post by Alukardd »

Any suggestion?

I deal it next:

Code: Select all

---/usr/share/otrs/Kernel/Output/HTML/ArticleAttachmentDownload.pm	2012-07-23 10:25:25.000000000 +0400
+++ /usr/share/otrs/Kernel/Output/HTML/ArticleAttachmentDownload.new.pm	2012-07-23 10:25:13.000000000 +0400
@@ -58,7 +58,7 @@
         %{ $Param{File} },
         Action => 'Download',
         Link =>
-            "\$Env{\"CGIHandle\"}/$EncodedFilename?Action=AgentTicketAttachment;ArticleID=$Param{Article}->{ArticleID};FileID=$Param{File}->{FileID}",
+            "\$Env{\"CGIHandle\"}?Action=AgentTicketAttachment;ArticleID=$Param{Article}->{ArticleID};FileID=$Param{File}->{FileID}",
         Image  => 'disk-s.png',
         Target => $Target,
     );
Locked