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

resource download works in Chrome (Status 200) but not in other Browsers (Status 302)

Jens Kisters __SeibertSolutions
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.
June 29, 2016

Hi,

i have built a small plugin to inject some css and font files into JIRA and the JIRA service desk.

I added the files like this:

<web-resource key="styling-resources" name="styling Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="js/" location="/js/"/>
<resource type="download" name="images/" location="/images"/>
<resource type="download" name="fonts/" location="/fonts"/>
<context>styling</context>
</web-resource>
<web-resource key="styles.atl.general.resources" name="Ressources for Jira Core">
<resource type="download" name="atl.general.css" location="css/atl.general.css"/>
<context>atl.general</context>
<context>main</context>
</web-resource>
<web-resource key="styles.jsd.customer.resources" name="Ressources for Customer Portal of JIRA Service Desk" application="jira">
<resource type="download" name="fonts/" location="/fonts"/>
<resource type="download" name="jsd.customer.css" location="css/jsd.customer.css"/>
<context>customerportal</context>
<dependency>com.atlassian.servicedesk:customer</dependency>
</web-resource>
<web-resource key="jira.admin.resources" name="Minimal Theme Admin/General Resources">
<resource type="download" name="jira.admin.css" location="css/jira.admin.css"/>
<context>atl.general</context>
<context>main</context>
<context>atl.admin</context>
</web-resource>

I have problems when accessing the JIRA Service Desk portal.

When i test the plugin in chrome the files residing in /fonts are delivered to the browser just fine:

 

Bildschirmfoto 2016-06-29 um 12.23.04.png

 

When i use Firefox or IE JIRA does not deliver the file, but issues a code302 and some JS and HTML content:

Bildschirmfoto 2016-06-29 um 12.26.50.png

I saved it as a file 

In JIRA Core this works just fine.

Whats going on here?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Jens Kisters __SeibertSolutions
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 5, 2016

It helped to add each font as a single ressource instead of making the font folder a ressource

Azzi Razzaq January 10, 2018

hi

0 votes
Jens Kisters __SeibertSolutions
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.
June 29, 2016

When i copy over the URL from Firefox to chrome the .woff file downloads just fine

TAGS
AUG Leaders

Atlassian Community Events