keycloak: Cannot read properties of undefined (reading 'hasOwnProperty') in realm events

Describe the bug

In some circumstances, the realm events view is broken with the error message Cannot read properties of undefined (reading 'hasOwnProperty').

Attached is a redacted copy of the 3 API calls that happen before the failure (/events/config, /admin-events, and /events). The extension is set to txt because Github didn’t judge it useful to whitelist json (…).

Since it happens in minified JS code and sourcemaps aren’t available (that I’m aware of), here’s the line where it happens, if it’s any helpful: 2022-12-08 10_46_04

2022-12-08 10_44_45

2022-12-08 10_34_00

Version

20.0.1

Environment

Edge 108 & Chrome 108

Expected behavior

Realm events load fine; even if a single event is malformed for some reason, it should also not break the ability of the admin console to view other events.

Actual behavior

Something about our events breaks the TableToolbar component of the admin console, making the entire view unavailable until events are expunged.

How to Reproduce?

Unfortunately no idea

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (9 by maintainers)

Most upvoted comments

This will be released in 20.0.4