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

RH-SSO 7.1-Beta: Component ID is ignored when creating new component with kcadm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RH-SSO-7.1.0.CR2
    • RH-SSO-7.1.0.DR1
    • None
    • None
    • Hide

      When creating a new component, the ID attribute is ignored. This is not indicated in the documentation, as it is a part of the component representation.

      When creating realms, clients etc, the id is used.

      Example:

      kcadm.bat create components -r RealmName -f realm-config.json -s parentId=ParentId -s id=this_is_ignored

      Created new component with id '04b7e40e-000f-4878-bbe7-f0a7ae906f87'

      I don't know what is intended behaviour here, but in any case I will be happy to attempt a pull request. As it is now, I consider this a bug either in the code or the documentation.

      It would be nice if the ID was possible to specify, because some later steps in my scripts might need to know that ID.

      Cf.> https://issues.jboss.org/browse/KEYCLOAK-4392

      Show
      When creating a new component, the ID attribute is ignored. This is not indicated in the documentation, as it is a part of the component representation. When creating realms, clients etc, the id is used. Example: kcadm.bat create components -r RealmName -f realm-config.json -s parentId=ParentId -s id=this_is_ignored Created new component with id '04b7e40e-000f-4878-bbe7-f0a7ae906f87' I don't know what is intended behaviour here, but in any case I will be happy to attempt a pull request. As it is now, I consider this a bug either in the code or the documentation. It would be nice if the ID was possible to specify, because some later steps in my scripts might need to know that ID. Cf.> https://issues.jboss.org/browse/KEYCLOAK-4392

      I have reported this as KEYCLOAK-4392.

      We are using RedHat SSO 7.1.Beta, but have also tried the community version, with same result.
      The admin endpoints are different in 7.0, afaik.

      We followed on these docs:

      https://access.redhat.com/webassets/avalon/d/red-hat-single-sign-on/version-7.1-Beta/restapi/#_post_admin_realms_realm_components

      Here you can post with a representation of a component, which includes an ID:

      https://access.redhat.com/webassets/avalon/d/red-hat-single-sign-on/version-7.1-Beta/restapi/#_componentrepresentation

      For all other objects I have tried, this works. Examples: realms, clients.

              rh_vmuzikar Václav Muzikář
              rhn-support-igueye Issa Gueye
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: