attachment .config file

Hi, I can't open attachments in my ticket with extension .config or .Config

Somebody idea how to open them? or what to change

4 answers

1 accepted

Hi Thomas,

We had similar issue when using IIS as proxy in front of JIRA (and Confluence). The problem origin is from IIS Request Filtering module which deny access to some extensions and URL segments.


It's possible to remove this filter for a specific web application using the following commands at administrator command prompt:

 

  • Allow downloading of file with a filtered extension (i.e. '.config' extension)
    • appcmd set config "Web app name" /section:requestFiltering /-fileExtensions.[fileextension='.config']
  • Allow downloading of file with a filtered URL segments (i.e. 'web.config' file)
    • appcmd set config "Confluence"/section:requestFiltering /-hiddenSegments.[segment='web.config']

 

This document is from our internal KB : 

Best regards,

Romain

Hi Thomas,
I think what you'll want to do is edit the following file in your JIRA application:

atlassian-jira/WEB-INF/classes/mime.types

And if you want these to be shown as plain text, more than likely you'll find the line that begins with:

text/plain

Then build upon it.  So mine by default looks like this:

text/plain          asc txt patch log java

So yours may look like this: 

text/plain          asc txt patch log java config

Change this and restart JIRA, then hopefully you see them, rather than downloading them.  

Hope this helps!

Hey Thomas,

                    What does the atlassian-jira.log file say while you are trying to open the .config file from JIRA ticket. I have reproduced by saving a .config file and attached on JIRA 7.0.5 SQL Server.

 

as.PNG

Also let me know what version of JIRA you are running so I will try to replicate the issue.

 

Regards

Chander Inguva

Thanks for the responses,

 

When i click on my .config file in the attachments I get the following error (see image)

 

It even doesn't download the file.

 We are still on JIRA version 6.3.4

kr,

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

260 views 2 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you