-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
Not defined
Brief summary of the bug. What is it ? Where is it ?
Steps to reproduce:
- Create a single number report
- configure it as kpi report
- add a rolling date filter to it
- open the process overview
Actual result:
5. the overview retrieval fails with a 500
the log shows:
08:13:04.111 [qtp1427350635-8286] ERROR o.c.o.r.p.GenericExceptionMapper - Mapping generic REST error
java.lang.NullPointerException: zone
at java.base/java.util.Objects.requireNonNull(Objects.java:246)
at java.base/java.time.ZonedDateTime.ofInstant(ZonedDateTime.java:435)
at java.base/java.time.OffsetDateTime.atZoneSameInstant(OffsetDateTime.java:1694)
at org.camunda.optimize.service.security.util.LocalDateUtil.atSameTimezoneOffsetDateTime(LocalDateUtil.java:51)
at org.camunda.optimize.service.security.util.LocalDateUtil.getCurrentTimeWithTimezone(LocalDateUtil.java:38)
at org.camunda.optimize.service.es.filter.util.DateFilterQueryUtil.createRollingDateFilter(DateFilterQueryUtil.java:99)
at org.camunda.optimize.service.es.filter.util.DateFilterQueryUtil.createRangeQuery(DateFilterQueryUtil.java:59)
at org.camunda.optimize.service.es.filter.util.DateFilterQueryUtil.addFilters(DateFilterQueryUtil.java:42)
at org.camunda.optimize.service.es.filter.InstanceEndDateQueryFilter.addFilters(InstanceEndDateQueryFilter.java:26)
at org.camunda.optimize.service.es.filter.ProcessQueryFilterEnhancer.addFilterToQuery(ProcessQueryFilterEnhancer.java:97)
at org.camunda.optimize.service.es.report.command.exec.ProcessReportCmdExecutionPlan.setupBaseQuery(ProcessReportCmdExecutionPlan.java:79)
Expected result:
it should work