Uploaded image for project: 'RH-SSO'
  1. RH-SSO
  2. RHSSO-200

Changes done by admin client sometimes doesn't have an effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RH-SSO-7.0.0.ER7
    • None
    • None
    • None

      Time to time I get error when some configuration is done by admin client and then the configuration isn't set.

      It happens only occasionally mostly when keycloak is configured with database.

      Example.java
       
      private org.keycloak.admin.client.Keycloak adminClient;
      
      RealmRepresentation testRealmRep = adminClient.realm("testRealm").toRepresentation();
      testRealmRep.setRegistrationAllowed(true);
      adminClient.realm("testRealm").update(testRealmRep);
      

      and then

      adminClient.realm("testRealm").toRepresentation().isRegistrationAllowed() 
      

      returns false and login page doesn't display register link.

      failing tests:
      org.keycloak.testsuite.account.RegistrationTest;
      org.keycloak.testsuite.account.ResetCredentialsTest;

      There is link to test result with failed test: https://keycloak-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/RH-SSO/job/rh-sso-jpa-matrix/DB=oracle11gR2,jdk=mw_oraclejdk8,label_exp=rhel7/44/testReport/org.keycloak.testsuite.account/RegistrationTest/emptyAttributes/

            Unassigned Unassigned
            vramik@redhat.com Vlasta Ramik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: