JIRA index failed after change customfield name to space

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.6.12, 7.13.2
    • Component/s: Custom fields
    • 7.06
    • 6
    • Severity 3 - Minor
    • 0

      Issue Summary

      The JIRA indexing failed with the following error after change a customfield name to a empty space:

      2019-04-10 16:52:41,921 JiraTaskExectionThread-1 WARN admin 1012x278x1 1lgfgnu 127.0.0.1 /secure/admin/IndexReIndex.jspa [c.a.jira.index.AccumulatingResultBuilder] Indexing failed for Issue - '10100'
      2019-04-10 16:52:41,921 JiraTaskExectionThread-1 WARN admin 1012x278x1 1lgfgnu 127.0.0.1 /secure/admin/IndexReIndex.jspa [c.a.jira.index.AccumulatingResultBuilder] com.atlassian.cache.CacheException: com.atlassian.cache.CacheException: com.atlassian.jira.util.dbc.Assertions$BlankStringArgumentException: names[0] should not be empty!
      2019-04-10 16:52:41,925 JiraTaskExectionThread-1 ERROR admin 1012x278x1 1lgfgnu 127.0.0.1 /secure/admin/IndexReIndex.jspa [c.a.j.issue.fields.ImmutableCustomField] Exception during searcher initialization of the custom field com.atlassian.jira.plugin.system.customfieldtypes:textsearcher:
      com.atlassian.jira.util.dbc.Assertions$BlankStringArgumentException: names[0] should not be empty!
      	at com.atlassian.jira.util.dbc.Assertions.containsNoBlanks(Assertions.java:146)
      	at com.atlassian.jira.issue.search.ClauseNames.<init>(ClauseNames.java:43)
      	at com.atlassian.jira.issue.search.ClauseNames.<init>(ClauseNames.java:38)
      	at com.atlassian.jira.issue.search.ClauseNames.forCustomField(ClauseNames.java:67)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.getClauseNames(ImmutableCustomField.java:310)
      	at com.atlassian.jira.issue.customfields.searchers.TextSearcher.init(TextSearcher.java:61)
      	at com.atlassian.jira.issue.customfields.searchers.TextSearcher.init(TextSearcher.java:35)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.loadCustomFieldSearcher(ImmutableCustomField.java:1771)
      	at io.atlassian.fugue.Suppliers$MemoizingSupplier.get(Suppliers.java:175)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.getCustomFieldSearcher(ImmutableCustomField.java:1519)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.createAssociatedSearchHandler(ImmutableCustomField.java:627)
      

      Steps to Reproduce

      1. Create anew customfield with a normal name.
      2. Edit the customfield by changing the name to space (" ").
      3. Save the change and trigger an indexing operation

      Expected Results

      The index should run correctly.

      Actual Results

      The operation file with the following error on the UI:

      The re-index did not complete successfully. Please refer to JIRA logs for more details.
      

      Notes

      The issue is caused by the customfield name text box in the edit screen does not have the empty string protection.

      Workaround

      Rename the customfield to a normal text name again.

            Assignee:
            Unassigned
            Reporter:
            Yilin (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: