Jira needs to escape the URLs when it loads the issue table from a custom filter

XMLWordPrintable

    • 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

      1. Unable to export a filter and filter box is missing when viewing it in saved filters
      2. Open configuration file server.xml (should be in conf directory)
      3. Find all connectors your application is using
      4. Add relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>" to properties for example: 
        <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"/>
      5. Restart Jira
      6. 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

            Assignee:
            Unassigned
            Reporter:
            Tiziana Marchionni (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: