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

Potential copy-paste issue in PersistentClientSessionEntity.java [GHI#40663]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description

      I have identified a potential issue in the equals() method in the following code:
      https://github.com/keycloak/keycloak/blob/f4d5fa68c1159fd03de93a27cbef3d7f46a50e75/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java#L196-L197
      It appears that the instance's fields should be compared to the corresponding fields of passed object, rather than comparing them to key.clientId

      Discussion

      No response

      Motivation

      No response

      Details

      No response

      Found by Linux Verification Center with SVACE

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

                Created:
                Updated:
                Resolved: