-
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
- Create anew customfield with a normal name.
- Edit the customfield by changing the name to space (" ").
- 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.
- causes
-
JRASERVER-19489 An Empty Custom Field Name causes JIRA 4.0 not to start correctly.
-
- Closed
-
- is duplicated by
-
JRASERVER-69134 An empty name custom field breaks Lucene index
-
- Closed
-
- mentioned in
-
Page Loading...