IIS rewrite rule when committer name contains backslashes

Still need help?

The Atlassian Community is here for you.

Ask the community

Using IIS while having committers names containing backslashes may cause issues when trying to add new changesets to a review if the rewrite rule in IIS is not properly configured.

The following rewrite rule should avoid such problems by the moment that URL containing URLencoded backslashes won't have the backslashes replaced by slashes:

<rule name="FishEye" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://HOST:PORT/{UrlDecode:{C:1}}" logRewrittenUrl="true" />
                    <conditions>
                        <add input="{UNENCODED_URL}" pattern="/(.*?)($|\?)" />
                    </conditions>
                </rule>

The rewrite rules are stored either in the ApplicationHost.config file or in Web.config files. This uses the UNENCODED_URL variable to get the original URL and use it to rewrite the request.

Last modified on Jun 28, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.