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

QuarkusKeycloakSession leak in DeclarativeUserProfileProvider [GHI#43785]

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

      user-profile

      Describe the bug

      Due to the use or anonymous inner classes, the code holds on to the instance and the session.

      <img width="694" height="195" alt="Image" src="https://github.com/user-attachments/assets/220d0da2-5576-4bcf-b3ca-28efee4c47b2" />

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      There should be no leak of the KeycloakSession

      Actual behavior

      There is a leak

      How to Reproduce?

      Start up an instance, log in once to initialize the DeclarativeUserProfileProvider, and take a memory snapshot.

      Anything else?

      I'll provide a PR

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak SRE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: