StringUtils breaks for non-english languages

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.5 Pro
    • Affects Version/s: 2.4.1
    • Component/s: None
    • 2.04

      we get the error below everytime we try to create or edit an issue containing simplified chinese characters. Like we put chinese
      +characters into the issue summary. we have jira set for utf8. displaying chinese chars is not a problem. if the chars are all
      +english, then no problem. We are using MySQL database compiled for ISO8859 but using the mysql connector driver 2.0 with
      +useEncoding=UTF8

      WARNING: Could not set parameter "null":java.lang.ArrayIndexOutOfBoundsException: 20013
      java.lang.ArrayIndexOutOfBoundsException: 20013
      at com.atlassian.jira.util.StringUtils.escapeCP1252(StringUtils.java:82)
      at com.atlassian.jira.web.filters.EncodingFilter$WordCurlyQuotesRequestWrapper.escapeString(EncodingFilter.java:153)
      at com.atlassian.jira.web.filters.EncodingFilter$WordCurlyQuotesRequestWrapper.getParameterValues(EncodingFilter.java:176)
      at javax.servlet.ServletRequestWrapper.getParameterValues(ServletRequestWrapper.java:234)
      at webwork.action.factory.ParameterMap.entrySet(ParameterMap.java:39)
      at java.util.AbstractMap$2.<init>(AbstractMap.java:371)

            Assignee:
            Scott Farquhar
            Reporter:
            Scott Farquhar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: