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

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

0 votes
Accepted answer

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Want to know how Atlassians monitor their enterprise deployments?

At Atlassian, we believe in our own products – that's why we use them, even at the enterprise level. Doing so gives us first-hand experience of how they perform at scale; to do this, we monitor each ...

26 views 0 0
View post

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