[JBoss JIRA] (WFCORE-1448) AttributeParser for ObjectListAttributeDefinitions doesn't differentiate between empty and absent object lists
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1448?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-1448:
-------------------------------------
Fix Version/s: 2.2.0.CR1
> AttributeParser for ObjectListAttributeDefinitions doesn't differentiate between empty and absent object lists
> --------------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-1448
> URL: https://issues.jboss.org/browse/WFCORE-1448
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 2.1.0.Final
> Reporter: Tomaz Cerar
> Assignee: Tomaz Cerar
> Fix For: 2.2.0.CR1, 3.0.0.Alpha1
>
>
> Attributes of type ObjectList are left undefined when their enclosing element is empty, which makes it impossible to differentiate an empty object list from an unspecified one.
> The ability to distinguish the two scenarios is important in the security manager subsystem. Consider this configuration:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:security-manager:1.0">
> <deployment-permissions>
> <mininum-set>
> ....
> </minimum-set>
> </deployment-permissions>
> </subsystem>
> {code}
> The maximum-set is absent and this case we want to use a default set with AllPermission. Now consider another configuration:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:security-manager:1.0">
> <deployment-permissions>
> <mininum-set/>
> <maximum-set/>
> </deployment-permissions>
> </subsystem>
> {code}
> In this case, maximum-set has been specified but it is empty, which means the admin/user deliberately wants to use an emtpy set, possibly to enforce that no deployments with special permissions requirements get deployed.
> The problem is that both scenarios result in an undefined attribute for the maximum-set, which means that the default AllPermission set ends up being used in both cases. The parser doesn't initialize the attribute with an empty list when the enclosing element is present but is empty. So in the end, both approaches result in an undefined attribute.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (WFCORE-915) Allow concurrent registration of slave host controllers
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-915?page=com.atlassian.jira.plugin... ]
Brian Stansberry updated WFCORE-915:
------------------------------------
Fix Version/s: 2.2.0.CR1
> Allow concurrent registration of slave host controllers
> -------------------------------------------------------
>
> Key: WFCORE-915
> URL: https://issues.jboss.org/browse/WFCORE-915
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Domain Management
> Reporter: Brian Stansberry
> Assignee: Ken Wills
> Labels: 2.2
> Fix For: 2.2.0.CR1, 3.0.0.Alpha1
>
>
> Registration of slave host controllers must be done with the exclusive ModelController lock held, in order to ensure that the registering HC sees a consistent config throughout the entire process. The drawback to this is registrations must therefore be done in series, which is inefficient in a large domain.
> We need to evaluate how this can be done in parallel, without losing the correctness semantics. For example, have the first registration request acquire the lock, but then don't release the lock as long as any other registrations are in progress.
> The current lock acquisition mechanism based on an OperationStepHandler acquiring the lock[1] can't do this, or at least not without having the request that acquires the lock have to wait for final completion until all other concurrent requests complete. (Doing that will likely cause problems due to that "unlucky" first slave not getting the expected final response. Plus it just smells bad.)
> A possibility is to remove the currrent lock acquisition in the OSH[1] and instead change the internal HostControllerRegistrationHandler.OperationExecutor API to expose a use-case specific method for the initial registration call.[2] The actual HostControllerRegistrationHandler.OperationExecutor impl is DomainModelControllerService, which is the service that installs the ModelControllerImpl and potentially has closer access to its non-public API (i.e. the locking methods.) So DomainModelControllerService can perhaps therefore coordinate the locking, holding the lock until all active registrations complete.
> [1] https://github.com/wildfly/wildfly-core/blob/master/host-controller/src/m...
> [2] I want to change that API anyway. See TODO at https://github.com/wildfly/wildfly-core/blob/master/host-controller/src/m...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (WFCORE-1449) truststore-type incorrect case in management schema
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1449?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-1449:
-------------------------------------
Fix Version/s: 2.2.0.CR1
> truststore-type incorrect case in management schema
> ---------------------------------------------------
>
> Key: WFCORE-1449
> URL: https://issues.jboss.org/browse/WFCORE-1449
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management, Security
> Affects Versions: 2.1.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Fix For: 2.2.0.CR1, 3.0.0.Alpha1
>
>
> truststore-Type attribute of element server-sslType should be named truststore-type in XSD. Wildfly configuration parser works with truststore-type, but for example eclipse xml validator complains when truststore-type is used in configuration file.
> On the other side when truststore-Type (comply to XSD) is used, wildfly configuration parser starts to complain:
> {code}
> [Host Controller] 14:49:21,822 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0033: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
> [Host Controller] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
> [Host Controller] at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:188)
> [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:585)
> [Host Controller] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
> [Host Controller] at java.lang.Thread.run(Thread.java:745)
> [Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[110,13]
> [Host Controller] Message: WFLYCTL0197: Unexpected attribute 'truststore-Type' encountered
> [Host Controller] at org.jboss.as.controller.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:117)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.parseServerSsl(HostXml_4.java:1271)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.parseServerContent(HostXml_4.java:1131)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.parseServer(HostXml_4.java:1088)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.parseServers(HostXml_4.java:1071)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.readHostElement(HostXml_4.java:388)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml_4.readElement(HostXml_4.java:170)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:79)
> [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:50)
> [Host Controller] at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
> [Host Controller] at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
> [Host Controller] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
> [Host Controller] ... 4 more
> [Host Controller]
> [Host Controller] 14:49:21,823 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0034: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months
[JBoss JIRA] (WFCORE-1177) Service can't be installed if the path contains a closed bracket
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1177?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-1177:
-------------------------------------
Fix Version/s: 2.2.0.CR1
> Service can't be installed if the path contains a closed bracket
> ----------------------------------------------------------------
>
> Key: WFCORE-1177
> URL: https://issues.jboss.org/browse/WFCORE-1177
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Environment: all Windows versions
> Reporter: Paul Wildberg
> Assignee: Tomaz Cerar
> Priority: Critical
> Labels: jboss
> Fix For: 2.2.0.CR1, 3.0.0.Alpha1
>
>
> Problem:
> If you start "service.bat install" in e.g. in C:\Program Files (x86)\wildfly-9.0.1.Final\bin\service you will get:
> Using the X86-64bit version of prunsrv
> "\wildfly-9.0.1.Final\domain\log" can not be used syntatically at this point (don't know if it is correct, I translated it from german. Original it is "kann syntaktisch an dieser Stelle nicht verarbeitet werden.")
> Cause:
> This is because of the ) in "Program Files (x86)" and this is a problem because in the service.bat in line 175 and 179 (set LOGPATH=%JBOSS_HOME%\domain\log and LOGPATH=%JBOSS_HOME%\standalone\log- in version 9.0.1 and 9.0.2 - in Version 10 it may be in another line) path is not set in double quotation marks.
> All other paths are set in double quotation marks.
> Solution:
> Set the variable and path in double quotation marks:
> set "LOGPATH=%JBOSS_HOME%\...\log"
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 11 months