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

Server responds with 500 when filter contains empty conditions array #87

Closed
vyacheslav-pushkin opened this issue Dec 24, 2019 · 0 comments
Assignees
Labels
severity: minor The defect does not affect functionality or data. It is merely an inconvenience. state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.0 Fixed in version ver: 7.3.0 Fixed in version
Milestone

Comments

@vyacheslav-pushkin
Copy link
Contributor

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

@knstvk knstvk added type: bug Something isn't working severity: minor The defect does not affect functionality or data. It is merely an inconvenience. labels Jan 27, 2020
@knstvk knstvk added this to the Release 7.2 milestone Jan 27, 2020
NikitaShchienko added a commit that referenced this issue Feb 18, 2020
@NikitaShchienko NikitaShchienko added ver: 7.2.0 Fixed in version ver: 7.3.0 Fixed in version labels Feb 18, 2020
@natfirst natfirst added the state: fixed Fixed by the developer label Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: minor The defect does not affect functionality or data. It is merely an inconvenience. state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.0 Fixed in version ver: 7.3.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

5 participants