Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-40932

JIRA does not lowercase the domain name in the Base URL

    XMLWordPrintable

Details

    Description

      Summary

      JIRA allows the Base URL to be configured with upper case letters (e.g. http://LOCALHOST:8080). However, as per the URI RFC (https://tools.ietf.org/html/rfc3986), the domain name is case insensitive - e.g. if you type http://LOCALHOST:8080 in most recent browsers, they automatically convert the domain to lowercase (tested on Firefox 32.0.3, Safari Version 7.1 and Chrome Version 38.0.2125.111).

      Steps to Replicate:

      1. Following the steps on the Configuring JIRA Options, change the JIRA Base URL to contain upper case letters in the domain name (e.g. http://LOCALHOST:8080/jira).
      2. Access JIRA via the new base url - http://LOCALHOST:8080/jira - the browser will modify the domain to lower case.
      3. Try to use a gadget (e.g. leave a comment on an activity stream) - an error will be thrown.

      I believe other gadgets might break as well, as per the document Configuring JIRA Options:

      This is especially important for JIRA 4.0.x or higher, as any mismatch between this Base URL setting and the URL requested by your JIRA users will cause problems with dashboard gadgets.

      We should not allow the Base URL to be configured in a way which may break the application functionalities (e.g. gadgets, AppLinks).

      A possible alternative would be following the same approach as the browsers follow: convert the domain to lower case and leave the context path as case sensitive once the user saves the Base URL.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dconrad Danilo Conrad
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: