Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order parameters are not lowerCased when passed to another MS #83

Open
thib3113 opened this issue Oct 17, 2019 · 0 comments
Open

Order parameters are not lowerCased when passed to another MS #83

thib3113 opened this issue Oct 17, 2019 · 0 comments

Comments

@thib3113
Copy link

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant