Details

    • Steps to Reproduce:
      Hide

      Setup the environment.
      Deploy any war with a jboss-web.xml including:

        <replication-config>
          <cache-name>web</cache-name>
          <replication-granularity>ATTRIBUTE</replication-granularity>
        </replication-config>
      
      
      Show
      Setup the environment. Deploy any war with a jboss-web.xml including: <replication-config> <cache-name> web </cache-name> <replication-granularity> ATTRIBUTE </replication-granularity> </replication-config>
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Caused by: java.lang.NullPointerException
      	at org.keycloak.subsystem.adapter.saml.extension.KeycloakClusteredSsoDeploymentProcessor.addSamlReplicationConfiguration(KeycloakClusteredSsoDeploymentProcessor.java:119)
      
       if (webMetaData.getReplicationConfig() != null && webMetaData.getReplicationConfig().getCacheName() != null) {
                  ServiceName sn = ServiceName.parse(webMetaData.getReplicationConfig().getCacheName());
                  cacheContainer = sn.getParent().getSimpleName();
                  deploymentSessionCacheName = sn.getSimpleName();
              }
      

      Error happens in sn.getParent().getSimpleName();
      getParent() returns null.
      This is due the following call chain:

       public static ServiceName parse(String original) throws IllegalArgumentException {
               ...
              return ServiceName.of(segments.toArray(new String[segments.size()]));
          }
      
       public static ServiceName of(final String... parts) {
              return of(null, parts);
          }
      
      public static ServiceName of(final ServiceName parent, String... parts) {
      ...
       current = new ServiceName(parent, part);
      ...
      
       private ServiceName(final ServiceName parent, final String name) {
              this.name = name;
              this.parent = parent;
      ...
      }
      

      So when using parse() the parent of the returned ServiceName is always null.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hmlnarik Hynek Mlnařík
                Reporter:
                denny.mueller Denny Müller
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: