添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jira 7.12 runs on tomcat 8.5 and needs additional connector parameters -

https://confluence.atlassian.com/jirakb/changing-server-xml-to-handle-requests-with-special-characters-958453799.html

Here's the new default connector -

<Connector
  port="8080"
  relaxedPathChars="[]|"
  relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
  maxThreads="150"
  minSpareThreads="25"
  connectionTimeout="20000"
  enableLookups="false"
  maxHttpHeaderSize="8192"
  protocol="HTTP/1.1"
  useBodyEncodingForURI="true"
  redirectPort="8443"
  acceptCount="100"
  disableUploadTimeout="true"
  bindOnInit="false"

Please provide a way to add relaxedPathChars and relaxedQueryChars. Thanks!

something like this should work @ https://github.com/voxpupuli/puppet-jira/blob/master/templates/server.xml.erb#L77

<% if @version >= 7.12 -%>
                   relaxedPathChars="[]|"
                   relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<% end -%>
          

As a workaround you can append these to the proxy parameter, eg:
proxy => { 'scheme' => 'https',
'proxyName' => $facts['hostname'],
'proxyPort'=>'443',
'relaxedPathChars'=>'[]|',
'relaxedQueryChars'=>'[]|{}^\`"<>'

this workaround works, thank you. i'll keep an eye out for the next update.

proxy          => {
  proxyName         => 'mysite.com',
  proxyPort         => '443',
  relaxedPathChars  => '[]|',
  relaxedQueryChars => '[]|{}^&#x5c;&#x60;&quot;&lt;&gt;',
  scheme            => 'https',