Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8389

Settings modcluster/ssl-context conflict issue

    XMLWordPrintable

Details

    Description

      Setting ssl-context in modcluster subsystem

      /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=ssl-context,value=clientSSLContext)
      

      when ssl is configured

      /subsystem=modcluster/mod-cluster-config=configuration/ssl=configuration
      

      shouldn't end as success

      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      

      as

      reload

      triggers exception in server log

      2017-03-13 10:13:45,394 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 51) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "modcluster")]): java.lang.IllegalStateException: WFLYMODCLS0020: Only one of 'ssl-context' attribute or 'ssl' resource can be defined!
              at org.wildfly.extension.mod_cluster.ModClusterConfigurationServiceBuilder.configure(ModClusterConfigurationServiceBuilder.java:225)
              at org.wildfly.extension.mod_cluster.ModClusterSubsystemAdd.performBoottime(ModClusterSubsystemAdd.java:80)
              at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performBoottime(AbstractBoottimeAddStepHandler.java:157)
              at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:116)
              at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)
              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:979)
              at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:722)
              at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:441)
              at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:381)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.lang.Thread.run(Thread.java:785)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

      User shouldn't be allowed to set ssl-context in this scenario or be warned.

      Attachments

        Issue Links

          Activity

            People

              mpetrov@redhat.com Michal Petrov
              mpetrov@redhat.com Michal Petrov
              Jan Kasik Jan Kasik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: