Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Content disposition parameters in Jira

Edited
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 07, 2018

Hi! 

 

Everybody uses so nice feature related view in Browser attachment. e.g. txt file show automatically in browsers. (It shows because App provides headers like "Content-Disposition: inline; filename*=UTF-8''text.txt;")

 

Why we can not use this feature for the SVG files? e.g.

I have put into text mode comment block into the Jira text like this

[^gnu.svg]

 

After that tomcat(or webapp) natively provide header like "content-disposition: inline; filename*=UTF-8''gnu.svg;" instead of "content-disposition: attachment; filename*=UTF-8''gnu.svg;". 

 

It will help decreasing configurations on proxy server like :

 

location /secure/attachment {

proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://jira_upstream;

location ~ "\.svg"{
add_header X-Whom www-node01;
add_header Content-Disposition "inline;";
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://jira_upstream;
}
}

 

What do you think about this feature? 

 

 

Cheers,

Gonchik Tsymzhitov

0 comments

Comment

Log in or Sign up to comment