Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.4.4, 6.4.10, 7.0.9, 7.0.0
-
6.04
-
10
-
Severity 3 - Minor
-
0
-
Description
Problem
Constant exceptions in logs due to an extra slash in the URL.
Steps to Reproduce
- Install JIRA and JIRA Agile;
- Tail the localhost logs;
- 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.