[jboss-jira] [JBoss JIRA] (WFLY-6491) Undertow subsystem is misleading about listener capabilities
Stuart Douglas (JIRA)
issues at jboss.org
Mon Apr 4 23:23:00 EDT 2016
[ https://issues.jboss.org/browse/WFLY-6491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186360#comment-13186360 ]
Stuart Douglas commented on WFLY-6491:
--------------------------------------
I think this attribute should be deprecated, and the semantics changes so that if the listener is not enabled the service still starts however it does not actually listen.
> Undertow subsystem is misleading about listener capabilities
> ------------------------------------------------------------
>
> Key: WFLY-6491
> URL: https://issues.jboss.org/browse/WFLY-6491
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 10.0.0.Final
> Reporter: Brian Stansberry
> Assignee: Stuart Douglas
>
> ListenerResourceDefinition registers the LISTENER_CAPABILITY regardless of the value of the 'enabled' attribute. But the contract provided by that capability is only fulfilled if the attribute is 'true'.
> Even worse, the attribute supports expressions, which can only be reliably resolved in Stage.RUNTIME, which is too late for recording a capability.
> Fortunately, it's vault resolution that makes it necessary to resolve in RUNTIME and reality is people are highly unlikely to use the vault for this expression, so we can try and resolve and hope for the best.
> This enabled stuff is just the worst. DON'T USE THIS CONCEPT IN YOUR MODEL!
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list