Problem with FS based tiff's and IE

We have been storing tickets in the database for years and since now 90 days of tickets is 120gb, we decided to move to the FS based storage engine. We have hit a strange problem, .tif attachments stored on the FS add an additional line to the top of the download when we hit it with IE: image/tiff; name="fax000519537.tif" If I save the attachment in IE and edit the file and remove that line, it opens just fine in the tiff viewers. Oddly Firefox does not do this. I've checked the file on the FS and it doesn't add that line, I've looked at the code a pretty good bit and havn't been able to locate where you might be adding this content-type to the actual data attachment. We were running version 1.3.2 and upgraded to the latest: 2.3.4 and saw the problem in both versions. Thinking it may be a streaming problem, I've googled around for mime types and apache headers for tif and all say image/tiff which I have in /etc/mime.conf, but I added an additional Type in apache just to make sure, but it didnt work either. Has anyone see this problem? Thanks, Steve

Just FYI, we fixed this problem (finally) by patching: Kernel/System/Ticket/ArticleStorageFS.pm Kernel/System/Ticket/ArticleStorageDB.pm if ($Content) { $Data{ContentType} = shift @{$Content}; $Data{Content} = join("", @{$Content}); #$Data{ContentType} = $Content->[0]; #my $Counter = 0; #for my $Line ( @{$Content} ) { # if ($Counter) { # $Data{Content} .= $Line; # } # $Counter++; #} } Commented section is the old code. Also, url's wrapped in (parenthesis) the trailing ) gets added to the href, I modified Kernel/Output/HTML/OutputFilterTextURL.pm's $Link variable since it it's very specific to out situation I won't paste it here. Problem(s) solved. Steve Wakham wrote:
We have been storing tickets in the database for years and since now 90 days of tickets is 120gb, we decided to move to the FS based storage engine. We have hit a strange problem, .tif attachments stored on the FS add an additional line to the top of the download when we hit it with IE: image/tiff; name="fax000519537.tif"
If I save the attachment in IE and edit the file and remove that line, it opens just fine in the tiff viewers. Oddly Firefox does not do this. I've checked the file on the FS and it doesn't add that line, I've looked at the code a pretty good bit and havn't been able to locate where you might be adding this content-type to the actual data attachment.
We were running version 1.3.2 and upgraded to the latest: 2.3.4 and saw the problem in both versions. Thinking it may be a streaming problem, I've googled around for mime types and apache headers for tif and all say image/tiff which I have in /etc/mime.conf, but I added an additional Type in apache just to make sure, but it didnt work either.
Has anyone see this problem?
Thanks, Steve
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
participants (1)
-
Steve Wakham