Usernames with special characters may be double encoded behind an Apache Proxy with a RewriteRule

お困りですか?

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

コミュニティに質問

問題

When working with user names that contain special characters, (such as "@" and "#") you may receive the following message:

User <test%45test.com> does not exist

原因

Crowd is behind a reverse proxy, and a RewriteRule exists to alter the URL (perhaps to go from http to https) in some form:

RewriteRule ^/?(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

The special characters are being encoded, and being double encoded again by the reverse proxy.

ソリューション

Add the NoEncode to the RewriteRule, to ensure that the Rewrite is not being double encoded. The above rule would become:

RewriteRule ^/?(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,NE,L]

最終更新日 2016 年 5 月 19 日

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

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