Skip to content

Commit

Permalink
relaxedPath options only needed from Jira version >v7.12.1 and Servic…
Browse files Browse the repository at this point in the history
…e Desk

According to
https://confluence.atlassian.com/jirakb/changing-server-xml-to-handle-requests-with-special-characters-958453799.html
we need to have relaxedPathChars and relaxedQueryChars set according to
the FAQ page of Atlassian with Jira version greater than 7.12.1 and
apparently Service Desk.
  • Loading branch information
thonixx committed Mar 6, 2019
1 parent 1ca982b commit f6bd540
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions templates/server.xml.erb
Expand Up @@ -49,6 +49,10 @@
<%- if @tomcat_address -%>
address="<%= @tomcat_address %>"
<%- end -%>
<%- if ( scope.function_versioncmp([@version, '7.12.1']) > 0 && @product =~ /^jira/ ) or @product =~ /^servicedesk/ -%>
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<%- end -%>
maxThreads="<%= @tomcat_max_threads %>"
minSpareThreads="<%= @tomcat_min_spare_threads %>"
connectionTimeout="<%= @tomcat_connection_timeout %>"
Expand All @@ -58,8 +62,6 @@
useBodyEncodingForURI="<%= @tomcat_use_body_encoding_for_uri %>"
acceptCount="<%= @tomcat_accept_count %>"
disableUploadTimeout="<%= @tomcat_disable_upload_timeout %>"
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<% if @tomcat_native_ssl && @tomcat_redirect_https_port -%>
redirectPort="<%= @tomcat_redirect_https_port %>"
<% else -%>
Expand All @@ -79,15 +81,17 @@
<%- if @tomcat_address -%>
address="<%= @tomcat_address %>"
<%- end -%>
<%- if ( scope.function_versioncmp([@version, '7.12.1']) > 0 && @product =~ /^jira/ ) or @product =~ /^servicedesk/ -%>
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<%- end -%>
maxHttpHeaderSize="<%= @tomcat_max_http_header_size %>"
SSLEnabled="true"
maxThreads="<%= @tomcat_max_threads %>"
minSpareThreads="<%= @tomcat_min_spare_threads %>"
enableLookups="<%= @tomcat_enable_lookups %>"
disableUploadTimeout="<%= @tomcat_disable_upload_timeout %>"
acceptCount="<%= @tomcat_accept_count %>"
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<% if ! @proxy['scheme'] -%>
scheme="https"
<% end -%>
Expand Down

0 comments on commit f6bd540

Please sign in to comment.