Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21215

[GSS](7.3.z) WFCORE-4707 - The dot "." in the name of the security domain with infinispan cache does not work in EAP 7.3 CP4

XMLWordPrintable

    • False
    • False
    • +
    • Undefined
    • Workaround Exists
    • Hide

      it does work if we set name of the security-domain to name without dots "." just like "test" in both jboss-web.xml and standalone.xml.

      Show
      it does work if we set name of the security-domain to name without dots "." just like "test" in both jboss-web.xml and standalone.xml.
    • Hide
      • Add below security-domain in standalone.xml of 7.3.4
      <security-domain name="test.xyz.security-domain.default" cache-type="infinispan"> <authentication> <login-module name="default" code="custom.CustomLoginModule" flag="required" module="deployment.Hello.ear.testlogin.jar:main"/> </authentication> </security-domain>
      
      • Add below cache in infinispan subsystem .
                  <cache-container name="security" default-cache="auth-cache">
                      <local-cache name="auth-cache">
                          <transaction mode="BATCH"/>
                          <expiration lifespan="300000"/>
                      </local-cache>
                  </cache-container>
      
      • Deploy attached war and ear .
      • However , it does work if we set name of the security-domain to just "test" in both jboss-web.xml and standalone.xml .

      Using CLI the error appars in the moment that the security domain with cache infinispan is added. For example:

      /subsystem=infinispan/cache-container=security:add()
      /subsystem=infinispan/cache-container=security/local-cache=auth-cache:add()
      /subsystem=infinispan/cache-container=security/local-cache=auth-cache/component=expiration:write-attribute(name=lifespan, value=300000)
      /subsystem=infinispan/cache-container=security/local-cache=auth-cache/component=transaction:write-attribute(name=mode, value=BATCH)
      /subsystem=infinispan/cache-container=security:write-attribute(name=default-cache, value=auth-cache)
      
      /subsystem=security/security-domain=test.xyz.security-domain.default:add(cache-type=infinispan)
      {
          "outcome" => "failed",
          "failure-description" => {
              "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.clustering.infinispan.cache-configuration.securit
      y.\"test.xyz.security-domain.default\""],
              "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.clustering.infinispan.cache.security.test.xy
      z.security-domain.default is missing [org.wildfly.clustering.infinispan.cache-configuration.security.\"test.xyz.security-domain.def
      ault\"]"]
          },
          "rolled-back" => true,
          "response-headers" => {"process-state" => "reload-required"}
      
      Show
      Add below security-domain in standalone.xml of 7.3.4 <security-domain name= "test.xyz.security-domain.default" cache-type= "infinispan" > <authentication> <login-module name= "default" code= "custom.CustomLoginModule" flag= "required" module= "deployment.Hello.ear.testlogin.jar:main" /> </authentication> </security-domain> Add below cache in infinispan subsystem . <cache-container name= "security" default-cache= "auth-cache" > <local-cache name= "auth-cache" > <transaction mode= "BATCH" /> <expiration lifespan= "300000" /> </local-cache> </cache-container> Deploy attached war and ear . However , it does work if we set name of the security-domain to just "test" in both jboss-web.xml and standalone.xml . Using CLI the error appars in the moment that the security domain with cache infinispan is added. For example: /subsystem=infinispan/cache-container=security:add() /subsystem=infinispan/cache-container=security/ local -cache=auth-cache:add() /subsystem=infinispan/cache-container=security/ local -cache=auth-cache/component=expiration:write-attribute(name=lifespan, value=300000) /subsystem=infinispan/cache-container=security/ local -cache=auth-cache/component=transaction:write-attribute(name=mode, value=BATCH) /subsystem=infinispan/cache-container=security:write-attribute(name=default-cache, value=auth-cache) /subsystem=security/security-domain=test.xyz.security-domain.default:add(cache-type=infinispan) { "outcome" => "failed" , "failure-description" => { "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.clustering.infinispan.cache-configuration.securit y.\ "test.xyz.security-domain.default\" "], "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.clustering.infinispan.cache.security.test.xy z.security-domain.default is missing [org.wildfly.clustering.infinispan.cache-configuration.security.\"test.xyz.security-domain.def ault\ "]" ] }, "rolled-back" => true, "response-headers" => { "process-state" => "reload-required" }

      • The dot "." in the name of the security domain like - "test.xyz.security-domain.default" with cache-type="infinispan" does not work in eap 7.3.4 , it gives below error .
      //
      15:20:59,392 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "security"),
          ("security-domain" => "test.xyz.security-domain.default")
      ]) - failure description: {
          "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.clustering.infinispan.cache-configuration.security.\"test.xyz.security-domain.default\""],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.clustering.infinispan.cache.security.test.xyz.security-domain.default is missing [org.wildfly.clustering.infinispan.cache-configuration.security.\"test.xyz.security-domain.default\"]"]
      
      
      • Although , same setup works in eap 7.3.3 .

            rhn-support-rmartinc Ricardo Martin Camarero
            rhn-support-iingawal Indrajit Ingawale
            Daniel Cihak Daniel Cihak
            Daniel Cihak Daniel Cihak
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: