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

Exception thrown while indexing of field that ends with or starts with white-space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.13
    • 3.13
    • Indexing

      Exception thrown while indexing of field that ends with or starts with white-space.

      Value being substring'ed is different from the value checking length...

          public static String getValueForSorting(final String fieldValue)
          {
              if ((!StringUtils.isBlank(fieldValue)) && (fieldValue.length() > MAX_SORT_LENGTH))
              {
                  return fieldValue.trim().substring(0, MAX_SORT_LENGTH);
              }
              return fieldValue;
          }
      

            jed Jed Wesley-Smith (Inactive)
            nick.menere Nick Menere [Atlassian] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: