Skip to content

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

@thib3113

Description

@thib3113

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions