Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-6824

UserSessionAdapter never removes authenticated client sessions

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.4.0.Final, 3.4.1.Final, 3.4.3.Final
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      The removal of authenticated client sessions from the UserSessionAdapter.removeAuthenticatedClientSessions, will never happen because of a negated isEmpty guard.
      This looks like a bug when changing the code from:
      if (removedClientUUIDS == null || ! removedClientUUIDS.iterator().hasNext())
      to
      if (removedClientUUIDS == null || ! removedClientUUIDS.isEmpty())
      where the negation is left present and causing the opposite result.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hmlnarik Hynek Mlnařík
                Reporter:
                knutz3n Johannes K
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: