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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.13
    • Affects Version/s: 3.13
    • Component/s: Indexing
    • 3.13

      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;
          }
      

            Assignee:
            Jed Wesley-Smith (Inactive)
            Reporter:
            Nick Menere [Atlassian] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: