New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
It will blow up lucene's DateField.dateToString if an invalid date value exists in a custom field.
I had "0003-XX-XX" in one... which blew it up. I solved it by hacking IssueDocument..
Description
It will blow up lucene's DateField.dateToString if an invalid date value exists in a custom field.
I had "0003-XX-XX" in one... which blew it up. I solved it by hacking IssueDocument..
of course.. you have to code the if statement correctly for that to do anything...
if (timestamp.before(DATE.getTime())) {
log.error("Unable to add date custom field: date too early: "+timestamp);
} else {
log.error("Add date custom field: "+timestamp);
doc.add(Field.Keyword(DocumentConstants.ISSUE_CUSTOMFIELD_PREFIX + customField.getLong("id"), DateField.dateToString(timestamp)));
}
Ian Pojman added a comment - 18/Mar/03 12:52 PM of course.. you have to code the if statement correctly for that to do anything...
if (timestamp.before(DATE.getTime())) {
log.error("Unable to add date custom field: date too early: "+timestamp);
} else {
log.error("Add date custom field: "+timestamp);
doc.add(Field.Keyword(DocumentConstants.ISSUE_CUSTOMFIELD_PREFIX + customField.getLong("id"), DateField.dateToString(timestamp)));
}
if (timestamp.before(DATE.getTime())) { log.error("Unable to add date custom field: date too early: "+timestamp); } else { log.error("Add date custom field: "+timestamp); doc.add(Field.Keyword(DocumentConstants.ISSUE_CUSTOMFIELD_PREFIX + customField.getLong("id"), DateField.dateToString(timestamp))); }