Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3010

Filtering of user- and admin-events by dateTo always returns empty results [GHI#38911]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      admin/api

      Describe the bug

      When querying events via the REST API the result set always returns empty when the dateTo field is set. This can most easily be seen in the admin console under the event tab as any dateTo filter will result in no events being displayed.

      Version

      26.2.0

      Regression

      [x] The issue is a regression

      Expected behavior

      In prior versions the API would provide the filtered list of events and the admin console would show the correct filtered list.

      Actual behavior

      The dateTo filter seems to filter all events so that the result set of events is empty in the API and the console shows no results.

      How to Reproduce?

      • Create Realm
      • Perform any action that creates events for the new realm

      !Image

      • Navigate to the events tab in the account console or use the the events REST API to query for events.
      • Set dateTo filter for events to any (valid) value. (Did not test non-valid dates)

      !Image

      • Receive an empty result.
      • This is also true for direct calls via REST and seems to only affect the dateTo field and not the dateFrom field.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: