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

Entity search returns incorrect results for Time/LocalTime/OffsetTime #92

Open
vyacheslav-pushkin opened this issue Feb 12, 2020 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@vyacheslav-pushkin
Copy link
Contributor

Environment

  • Platform version: 7.2-SNAPSHOT
  • Addon version: 7.2-SNAPSHOT
  • Database: PostgreSQL

Description of the bug or enhancement

NOTE: Likely to be caused by a Platform issue as Generic UI demonstrates same behavior: cuba-platform/cuba#2705

  1. Create an instance of an entity having a time attribute (here and below "time" refers to Time, LocalTime or OffsetTime). Populate the time attribute with some value, e.g. "11:57".

  2. Send GET rest/v2/entities/{entity name}/search?{params} where params contains a filter with value

{"conditions":[{"property":"{property name}","operator":"=","value":"11:57:00"}]}

Expected result:

Result contains the record.

Actual result:

Result doesn't contain the record.

Changing operator to ">" results in the record being returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants