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

StringIndexOutOfBoundsError when trying to display certain issue text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.6.1 Pro
    • 2.6 Pro
    • None

    Description

      See JRA-3370 for a demonstration. The stacktrace is:

      java.lang.StringIndexOutOfBoundsException: String index out of range: 328
      at java.lang.String.substring(String.java:1441)
      at com.opensymphony.util.TextUtils.linkURL(TextUtils.java:834)
      at com.opensymphony.util.TextUtils.hyperlink(TextUtils.java:479)
      at com.opensymphony.util.TextUtils.plainTextToHtml(TextUtils.java:1317)
      at com.opensymphony.util.TextUtils.plainTextToHtml(TextUtils.java:1288)
      at com.atlassian.jira.web.tags.Text2Html.doEndTag(Text2Html.java:26)
      at /secure/views/issue/viewissue.jsp._jspService(/secure/views/issue/viewissue.jsp.java:872)
      at com.orionserver[Orion/2.0.2 (build 11157)].http.OrionHttpJspPage.service(.:70)

      The presence of any issue like this also breaks the RSS/Excel/Full content view for searches that happen to include it.

      Attachments

        Issue Links

          Activity

            People

              keith@atlassian.com Keith Brophy
              7ee5c68a815f Jeff Turner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: