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

Update the virtual security domain logic in EJBDefaultSecurityDomainProcessor to handle the case where the defined security domain is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 28.0.0.Final
    • None
    • EJB, Security
    • None

      If the security domain for an EJB has been explicitly configured as the empty string, the following exception occurs in EJBDefaultSecurityDomainProcessor

      Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for virtual-security-domain
              at org.jboss.msc@1.5.0.CR1//org.jboss.msc.service.ServiceName.of(ServiceName.java:91)
              at org.jboss.msc@1.5.0.CR1//org.jboss.msc.service.ServiceName.append(ServiceName.java:118)
              at org.jboss.as.controller@20.0.0.Beta8//org.jboss.as.controller.OperationContextImpl$CapabilityServiceSupportImpl.getCapabilityServiceName(OperationContextImpl.java:2601)
              at org.jboss.as.server@20.0.0.Beta8//org.jboss.as.server.security.VirtualDomainMarkerUtility.virtualDomainMetaDataName(VirtualDomainMarkerUtility.java:68)
              at org.jboss.as.ejb3@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.deployment.processors.EJBDefaultSecurityDomainProcessor.isVirtualDomain(EJBDefaultSecurityDomainProcessor.java:286)
              at org.jboss.as.ejb3@28.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.deployment.processors.EJBDefaultSecurityDomainProcessor.deploy(EJBDefaultSecurityDomainProcessor.java:134)
              at org.jboss.as.server@20.0.0.Beta8//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
              ... 8 more
      

      We need to update the logic to handle the case where the security domain is empty.

            fjuma1@redhat.com Farah Juma
            fjuma1@redhat.com Farah Juma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: