8000 Server responds with 500 when filter contains empty conditions array · Issue #87 · cuba-platform/restapi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Server responds with 500 when filter contains empty conditions array #87
Closed
@vyacheslav-pushkin

Description

@vyacheslav-pushkin

Environment

  • Platform version: 7.1.3
  • Addon version: 7.1.1

Description of the bug or enhancement

  • Minimal reproducible example

Send a request to the entity search endpoint with the filter parameter containing an empty conditions array:

filter: {"conditions":[]}

For example:

GET http://localhost:8080/petclinic/rest/v2/entities/petclinic_Owner/search?view=_local&sort=-updateTs&limit=10&offset=0&filter=%7B%22conditions%22%3A%5B%5D%7D&returnCount=true
  • Expected behavior

Same as when making a request without a filter parameter: server returns records without applying filtering.

  • Actual behavior

Server responds with 500 Internal Server Error

Metadata

Metadata

Labels

severity: minorThe defect does not affect functionality or data. It is merely an inconvenience.state: fixedFixed by the developertype: bugSomething isn't workingver: 7.2.0Fixed in versionver: 7.3.0Fixed in version

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0