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

Storage Provider Timeout is not configurable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • RH-SSO-7.6.5
    • None
    • False
    • None
    • False

    Description

      The current implementation of org.keycloak.storage.AbstractStorageManager expects the config key "storageProviderTimeout" to be available for the provided scope.

      protected Long getStorageProviderTimeout() {
          if (storageProviderTimeout == null) {
              storageProviderTimeout = Config.scope(configScope).getLong("storageProviderTimeout", STORAGE_PROVIDER_DEFAULT_TIMEOUT);
          }
          return storageProviderTimeout;
      }
      

      However, it is not possible to set this key for the SPI e.g. "user", because the XSD does not allow the value "storageProviderTimeout" at this point.

      <xs:complexType name="spiType">
          <xs:sequence>
              <xs:element name="default-provider" type="xs:string" minOccurs="0" maxOccurs="1"/>
              <xs:element name="provider" type="providerType" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="name" use="required"/>
      </xs:complexType>
      

      Thus it is not possible to configure the value.
      This also applies for SPI "client" and "roles"

      Attachments

        Issue Links

          Activity

            People

              sguilhen Stefan Guilhen
              vramik@redhat.com Vlasta Ramik
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: