-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.12.1
-
Component/s: JQL, Navigation - Filters
-
7.12
-
3
-
Severity 3 - Minor
-
0
Issue Summary
Jira needs to escape the URLs when it loads the issue table from a custom filter.
Currently it is sending the url with the brackets, should use the html escape codes instead.
It is forbidden to use square brackets in a URL (except to designate the host if it is an IP address). See the reference
A host identified by an Internet Protocol literal address, version 6
[RFC3513] or later, is distinguished by enclosing the IP literal
within square brackets ("[" and "]"). This is the only place where
square bracket characters are allowed in the URI syntax.
Steps to Reproduce
- Unable to export a filter and filter box is missing when viewing it in saved filters
- Open configuration file server.xml (should be in conf directory)
- Find all connectors your application is using
- Add relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>" to properties for example:
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>
- Restart Jira
- Unable to browse URLs with "[" and "]" cause there's no way to escape the characters.
Expected Results
Replace brackets in url cause they are not allowed in the URI syntax
Example URL:
https://domain_name/jira/rest/api/2/filter/12112?expand=subscriptions[-5:]&_=1560935888167
(see part subscriptions[-5:] )
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available