Project

General

Profile

Actions

Defect #3091

open

Filter of recertification requests fails for selected date

Added by Vladimír Kotýnek over 2 years ago. Updated over 2 years ago.

Status:
Needs feedback
Priority:
High
Assignee:
Tomáš Doischer
Target version:
-
Start date:
03/28/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

When I filter recertification request and select "Last month" or "Between" two dates or any other filter by date, I get the same results as if I didn't select any date filter.
In catalina.out log is following error message:

2022-03-28 10:51:16.429 ERROR 4551278364 --- [http-nio-127.0.0.1-8080-exec-10] e.b.i.c.m.r.f.DefaultFilterManager.log : [core:FILTER_PROPERTY_NOT_SUPPORTED:25a4348e-f68b-43a8-94d3-3ffd46aae5d0] Filter for
 property [till] for entity [RecRecertificationRequest] is not supported and cannot be used. ({propertyName=till, entityClass=RecRecertificationRequest})
eu.bcvsolutions.idm.core.api.exception.FilterNotSupportedException: Filter for property [till] for entity [RecRecertificationRequest] is not supported and cannot be used.
        at eu.bcvsolutions.idm.core.model.repository.filter.DefaultFilterManager.toPredicates(DefaultFilterManager.java:128)
        at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.toPredicates(AbstractReadDtoService.java:349)
        at eu.bcvsolutions.idm.rec.service.impl.DefaultRecRecertificationRequestService.toPredicates(DefaultRecRecertificationRequestService.java:57)
        at eu.bcvsolutions.idm.rec.service.impl.DefaultRecRecertificationRequestService.toPredicates(DefaultRecRecertificationRequestService.java:37)
        at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService$1.toPredicate(AbstractReadDtoService.java:449)
        at org.springframework.data.jpa.repository.support.SimpleJpaRepository.applySpecificationToCriteria(SimpleJpaRepository.java:740)
        at org.springframework.data.jpa.repository.support.SimpleJpaRepository.getQuery(SimpleJpaRepository.java:671)
        at org.springframework.data.jpa.repository.support.SimpleJpaRepository.getQuery(SimpleJpaRepository.java:629)
        at org.springframework.data.jpa.repository.support.SimpleJpaRepository.findAll(SimpleJpaRepository.java:428)
        at jdk.internal.reflect.GeneratedMethodAccessor341.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)

Expected behavior is that the filter returns recertification request created on dates that fit the filter.

Actions #1

Updated by Tomáš Doischer over 2 years ago

  • Assignee set to Tomáš Doischer
Actions #2

Updated by Tomáš Doischer over 2 years ago

  • Sprint set to Sprint 12.2-3 (bře 16 - bře 30)
Actions #3

Updated by Tomáš Doischer over 2 years ago

  • Status changed from New to Needs feedback
  • % Done changed from 0 to 100

Implemented. The fix is the same as in #3030. The same bug was in the recertification item agenda.

PR: https://git.bcvsolutions.eu/modules/recertification/-/merge_requests/2

Actions #4

Updated by Tomáš Doischer over 2 years ago

  • Sprint deleted (Sprint 12.2-3 (bře 16 - bře 30))
Actions

Also available in: Atom PDF