-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
---
-
---
The legacy 'security' subsystem is model-only so it is not possible for it to be present in a non-admin-only server. So review the uses of its capabilities (outside of the security subsytem itself, which is off-topic) and clean out anything that is using it in Stage.RUNTIME. It would just be cruft.
$ git grep org.wildfly.legacy-security connector/src/main/java/org/jboss/as/connector/subsystems/jca/JcaSubsystemAdd.java: final boolean legacySecurityAvailable = context.hasOptionalCapability("org.wildfly.legacy-security", null, null); ee-feature-pack/galleon-shared/src/main/resources/modules/system/layers/base/org/jboss/as/weld/main/module.xml: <!-- Only needed if capability 'org.wildfly.legacy-security.server-security-manager' is present --> ee/src/main/java/org/jboss/as/ee/subsystem/EeCapabilities.java: public static final String LEGACY_JACC_CAPABILITY = "org.wildfly.legacy-security.jacc"; ejb3/src/main/java/org/jboss/as/ejb3/security/EJBSecurityViewConfigurator.java: return support.hasCapability("org.wildfly.legacy-security"); ejb3/src/main/java/org/jboss/as/ejb3/subsystem/EJB3SubsystemAdd.java: private static final String LEGACY_JACC_CAPABILITY = "org.wildfly.legacy-security.jacc"; iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/Capabilities.java: public static final String LEGACY_SECURITY = "org.wildfly.legacy-security"; messaging-activemq/subsystem/src/main/java/org/wildfly/extension/messaging/activemq/MessagingSubsystemAdd.java: processorTarget.addDeploymentProcessor(MessagingExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_RESOURCE_DEF_ANNOTATION_JMS_CONNECTION_FACTORY, new JMSConnectionFactoryDefinitionAnnotationProcessor(MessagingServices.capabilityServiceSupport.hasCapability("org.wildfly.legacy-security"))); security/subsystem/src/main/java/org/jboss/as/security/SecuritySubsystemRootResourceDefinition.java: private static final RuntimeCapability<Void> SECURITY_SUBSYSTEM = RuntimeCapability.Builder.of("org.wildfly.legacy-security").build(); security/subsystem/src/main/java/org/jboss/as/security/SecuritySubsystemRootResourceDefinition.java: private static final RuntimeCapability<Void> SERVER_SECURITY_MANAGER = RuntimeCapability.Builder.of("org.wildfly.legacy-security.server-security-manager") security/subsystem/src/main/java/org/jboss/as/security/SecuritySubsystemRootResourceDefinition.java: private static final RuntimeCapability<Void> SUBJECT_FACTORY_CAP = RuntimeCapability.Builder.of("org.wildfly.legacy-security.subject-factory") security/subsystem/src/main/java/org/jboss/as/security/SecuritySubsystemRootResourceDefinition.java: private static final RuntimeCapability<Void> JACC_CAPABILITY = RuntimeCapability.Builder.of("org.wildfly.legacy-security.jacc") security/subsystem/src/main/java/org/jboss/as/security/SecuritySubsystemRootResourceDefinition.java: private static final RuntimeCapability<Void> JACC_CAPABILITY_TOMBSTONE = RuntimeCapability.Builder.of("org.wildfly.legacy-security.jacc.tombstone") undertow/src/main/java/org/wildfly/extension/undertow/Capabilities.java: public static final String REF_LEGACY_SECURITY = "org.wildfly.legacy-security"; undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentProcessor.java: private static final String LEGACY_JACC_CAPABILITY_NAME = "org.wildfly.legacy-security.jacc"; webservices/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java: private static final String LEGACY_SECURITY_CAPABILITY = "org.wildfly.legacy-security";
There are no Sub-Tasks for this issue.