Order parameters are not lowerCased when passed to another MS
Opened this issue · 0 comments
thib3113 commented
When I call the Tasks
microservice, with order : order[createdAt]=DESC
, it seems DESC
is directly passed to camunda, so camunda say :
400 Bad Request` response:
{"type":"InvalidRequestException","message":"Cannot set query parameter 'sortOrder' to value 'DESC'"}
The full error coming from tasks microservice :
Client error: `GET api.workflow.dev.ds/rest/task?tenantIdIn=f0d47297-fedf-4163-b19c-d3eb9a818503&sortBy=created&sortOrder=DESC&firstResult=0&maxResults=10` resulted in a `400 Bad Request` response:
{"type":"InvalidRequestException","message":"Cannot set query parameter 'sortOrder' to value 'DESC'"}
sending the order in lowerCase resolve the problem .
( after some research in Camunda, it seems API only allow asc
or desc
, no other cases )