Impossible to create a new project
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
When creating a new project in JIRA, we get the following error message, even though the Project key is written is all capital cases.
Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.
診断
Diagnostic Steps
- JIRA is running behind an IIS reverse proxy using AAR.
原因
The standard documentation Integrate Jira server and IIS with Application Request Routing seems to be incomplete and is not mentioning the variables HTTP_X_xxxx that need to be set in the JIRA IIS website web.config files.
回避策
Need to set
preserveHostHeader
proxy configuration to falseC:\Windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true
- Allow HTTP_X_xxxx server variables for URL Rewriting configurations, and add those to the rewrite rules (see sample web.config file for Confluence onhttp://pastebin.com/wSwcrbSr)
- First, Allow server variables to be used so you don't get 500 Error about them not being permitted. See the "Allow Server Variables to be Changed" section on this page:
http://www.iis.net/learn/extensions/url-rewrite-module/setting-http-request-headers-and-iis-server-variables- Goto IIS root level in IIS Manager > URL Rewrite > View Server Variables
- Add the following
HTTP_X_ORIGINAL_HOST
HTTP_X_FORWARDED_HOST
HTTP_X_FORWARDED_SERVER
Next, add sections like this to your JIRA IIS website web.config files:
<rule name="reverseproxy" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://jira.domain.com:8090/{R:1}" /> <serverVariables> <set name="HTTP_X_ORIGINAL_HOST" value="confluence.domain.com" /> <set name="HTTP_X_FORWARDED_HOST" value="confluence.domain.com" /> <set name="HTTP_X_FORWARDED_SERVER" value="confluence.domain.com" /> </serverVariables> </rule>
In the Application Request Routing proxy setup screen that you go through in the Atlassian instructions, un-check the Reverse rewrite hose in response headers checkbox.