Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-44887

Constant exceptions in logs due to an extra slash in the URL

    XMLWordPrintable

    Details

      Description

      Problem

      Constant exceptions in logs due to an extra slash in the URL.

      Steps to Reproduce

      1. Install JIRA and JIRA Agile;
      2. Tail the localhost logs;
      3. Access JIRA with an extra forward slash in the end of the URL:

      Expected Results

      It should work without any errors in the logs.

      Actual Results

      The below exception is thrown in the $JIRA_INSTALL/logs/localhost-*.log file:

      Aug 20, 2015 12:15:48 PM org.apache.catalina.core.ApplicationContext log
      SEVERE: Unhandled exception occurred whilst decorating page
      java.lang.StringIndexOutOfBoundsException: String index out of range: -6
      	at java.lang.String.substring(String.java:1955)
      

      Workaround

      Enable the Access Log and look for the IP address accessing JIRA with the incorrect URL by comparing the date and time from the exception in the $JIRA_INSTALL/logs/localhost-*.log file.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            aquadrospetry Andre Quadros Petry
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: