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

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: