-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
area/storageIndicates an issue that touches storage (change in data layout or data manipulation)Indicates an issue that touches storage (change in data layout or data manipulation)kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugrelease/26.2.6release/26.3.0team/core-shared
Description
Description
I have identified a potential issue in the equals()
method in the following code:
keycloak/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java
Lines 196 to 197 in f4d5fa6
if (this.externalClientId != null ? !this.externalClientId.equals(key.clientId) : key.externalClientId != null) return false; | |
if (this.clientStorageProvider != null ? !this.clientStorageProvider.equals(key.clientId) : key.clientStorageProvider != null) return false; |
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
Metadata
Metadata
Assignees
Labels
area/storageIndicates an issue that touches storage (change in data layout or data manipulation)Indicates an issue that touches storage (change in data layout or data manipulation)kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugrelease/26.2.6release/26.3.0team/core-shared