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

XMLWordPrintable

    • 6.04
    • 11
    • Severity 3 - Minor
    • 0

      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.

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

              Created:
              Updated: