Re: Attachment problem after upgrade

Martin Edenhofer <[email protected]>
Newsgroups gmane.comp.otrs.devel
Message-ID <[email protected]>
Hi Tobias,

On 15.02.2011, at 11:32, Tobias Dussa wrote:

> we've recently upgraded our OTRS installation big-time, going from
> 2.2.8 w/SIRIOS via 2.2.8 w/o SIRIOS via 2.3.6 via 2.4.8 via 3.0.3 via
> 3.0.4 to 3.0.5.  Unfortunately, attachments of inbound mails are not
> linked properly any more.
> 
> The links to the attachments within a ticket have the following form:
>   https://[ServerURL]/otrs/index.pl/file-2?Action=AgentTicketAttachment;ArticleID=134322;FileID=2
> instead of (correctly)
>   https://[ServerURL]/otrs/index.pl?Action=AgentTicketAttachment;ArticleID=134322;FileID=2
> 
> In other words, the string "/file-2" (which depends on the name of the
> attachment, of course) is mistakenly inserted between "index.pl" and
> "?".

The reason why it has changed is, because it's a workaround for IE to support multi byte of attachment filenames. 
 
Usually the filename is in the http header (Content-Disposition), but IE is not able to get the data with multi byte filenames out there correctly.

So the new URL (https://[ServerURL]/otrs/index.pl/file-2?Action...) will execute index.pl and for IE the file name is "file-2" (or in case a multi byte filenames) if you want to save the file. For all other browsers "/file-2" will not have any meaning because the file name is taken from http header (Content-Disposition).

Any more questions? :)

 -Martin

> Cheers,
> Toby.
> -- 
> Though I Fly Through the Valley of Death, I Shall Fear No Evil,
> For I Am 80,000 Feet and Climbing.
>  ---Sign over the entrance to the SR-71 operating location on Kadena

http://edenhofer.de/

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.