IIS rewrite rule when committer name contains backslashes

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

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.

最終更新日 2019 年 6 月 28 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.