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

Error calling GET /{realm}/users

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      curl "http://192.168.1.56:8081/auth/admin/realms/>realm>/users?briefRepresentation=true&first=0&max=20" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -H "Pragma: no-cache" -H "Cache-Control: no-cache" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldU...CfaeOA7lPdCRD" -H "Content-Type: application/json"

      To reproduce, I just ask for an access_token (/auth/realms/master/protocol/openid-connect/token) and then use it for the call you can see above.

      Show
      curl "http://192.168.1.56:8081/auth/admin/realms/>realm>/users?briefRepresentation=true&first=0&max=20" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -H "Pragma: no-cache" -H "Cache-Control: no-cache" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldU...CfaeOA7lPdCRD" -H "Content-Type: application/json" To reproduce, I just ask for an access_token (/auth/realms/master/protocol/openid-connect/token) and then use it for the call you can see above.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When I call GET /

      {realm}

      /users, it works 1 time and then I have got that exception killing the server

      2018-12-11 14:54:12,580 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-9) Uncaught server error: java.l
      ang.StackOverflowError
              at sun.reflect.GeneratedMethodAccessor341.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:49)
              at com.sun.proxy.$Proxy83.find(Unknown Source)
              at org.keycloak.models.jpa.JpaUserProvider.getUserById(JpaUserProvider.java:520)
              at org.keycloak.storage.UserStorageManager.getUserById(UserStorageManager.java:369)
              at org.keycloak.models.cache.infinispan.UserAdapter.getUserModel(UserAdapter.java:399)
              at org.keycloak.models.cache.infinispan.DefaultLazyLoader.get(DefaultLazyLoader.java:42)
              at org.keycloak.models.cache.infinispan.entities.CachedUser.getRequiredActions(CachedUser.java:111)
              at org.keycloak.models.cache.infinispan.UserAdapter.getRequiredActions(UserAdapter.java:173)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
              at org.keycloak.storage.ldap.mappers.msad.MSADUserAccountControlStorageMapper$MSADUserModelDelegate.getRequiredActions(MSADUserAccountControlStorageMapper.java:305)
      
      

      All the next call I try to do are then Unauthorized (401)

      Any help is welcome.

      Thanks

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  nlenouvel Nicolas Lenouvel
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: