want .log attachments mime type to be text/plain, not text/x-log

Mark Ikemoto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 6, 2011

This is probably more a web server question than a strictly Jira question. We attach a lot of plain-text .log files to our Jira issues, for example, crash.log, system.log, etc. The Mime type for these .log files is "text/x-log" according to the Manage Attachments screen. We would like these files to be "text/plain" instead. I've looked at the conf/mime.types file in our Apache 2.2 installation, and it says:

# MIME type Extensions

text/plain txt text conf def list log in

so I thought .log files would be typed as "text/plain", but that isn't happening. Thanks.

We're using Jira 4.2 and Apache Tomcat 2.2 on a Win Server 2008 machine.

1 answer

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2011

Setting mime-type in Apache does not help.

You should set it at the Tomcat level, check this: http://stackoverflow.com/questions/3282867/how-to-set-default-mime-tipe-for-any-file-extension-in-tomcat-6

but before check if jira web.xml does not contain a definition for that, since it will have precedence, if I'm not mistaken.

HTH

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events