Tuckey URLrewrite adding hostname twice for /browse/ links?

We recently migrated our JIRA and Confluence instances to new servers with new URLs.  All our in-context links to JIRA in Confluence updated to the new base url correctly, but unfortunately there were a lot of hard links created by users which did not update.  We have redirects for the old DNS addresses to the new servers, but it doesn't change the address; if the user uses these as is, they get SSL errors and base URL mismatch errors. So we set up a Tuckey urlrewrite filter to fix the base URL.  This works great with the exception of links that have the "/browse/" sub-path in the URL.  For these links, for some reason they get the base URL inputted twice in the corrected URL, which results in an error.  An example would be something like this:

Like

https://oldjira.company.net/browse/INST-1331

 

Will resolve to
https://newjira.company.com:8443/browse/https:/newjira.company.com:8443/browse/INST-1331

 

This is an example of what our urlrewrite looks like:

<rule>
<name>Domain Name Check</name>
<condition name="host" operator="notequal">newjira.company.com:8443$</condition>
<from>^(.*)</from>
<to type="redirect">https://newjira.company.com:8443$1</to>
</rule>

 

I've tried this a few different ways, including use multiple rules with host equals instead of host notequal, and they all result in the same thing.  ALL other links rewrite correctly, but links with /browse/ get a "double" redirect.  

Any suggestions?

Josiah

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,794 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot