How to serve HTML from Stash with the correct mime-type?

Is there a mode in Stash to serve HTML files repsecting their mime-type? We used to use WebSVN, which had this feature, which meant we could save the doxygen output into source control, and then browse it from within our source control viewer.

Something like how you can append &raw to the URL...

2 answers

1 accepted

This widget could not be displayed.

Hi Kevin,

I may have been a bit hasty. You might be interested in the following feature request, which you should cast a vote on:

https://jira.atlassian.com/browse/STASH-4099

Cheers,

Charles

Thanks for the tip

Hi Kevin,

I've got the bare essentials of a plugin if you're still interested:

https://bitbucket.org/cofarrell/stash-website-plugin

Still needs a link from Stash, at the moment you need to hard-code the URL.

Charles

Thank you! I really appreciate this, got it up and running already. Let me know if you have further updates.

This widget could not be displayed.

Hi Kevin,

Unfortunately not. Stash uses a common Atlassian HTTP library to handle raw files, and in the case of html files we intentially set the content disposition to 'attachment' to avoid any potential XSS attacks.

It wouldn't be hard to write a simple plugin that serves up html files with the correct headers, but it's unlikely something Stash will do.

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,325 views 8 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