holunda-io / camunda-bpm-taskpool

Library for pooling user tasks and process related business objects.
https://www.holunda.io/camunda-bpm-taskpool/
Apache License 2.0
67 stars 26 forks source link

Polyflow JPA view: Sort ignores direction #822

Closed StephanStrehlerCGI closed 1 year ago

StephanStrehlerCGI commented 1 year ago

Steps to reproduce

  1. Adding direction order check to SpecificationTest#'creates a paged request'
  2. Running test

Expected behaviour

first char '+' should return a ascending result first char '-' should return a descending result

Actual behaviour

default sort direction of JPA is used ignoring first char. Internally it throws an IllegalArgumentException in Sort.Direction.fromString

(In case of exceptions provide full stack trace)

zambrovski commented 1 year ago

Thanks for reporting and for the fix.