[jboss-jira] [JBoss JIRA] (WFCORE-4882) Correct minOccurts value for host element in XSD
Chao Wang (Jira)
issues at jboss.org
Mon Apr 6 21:40:00 EDT 2020
[ https://issues.redhat.com/browse/WFCORE-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Wang updated WFCORE-4882:
------------------------------
Steps to Reproduce:
was:
* Install a vanilla JBoss EAP 7.1.6 and a vanilla JBoss EAP 7.2.3
* On JBoss EAP 7.1.6 change the {{domain.xml}}/{{management}} configuration to this:
{code:xml}
<management>
<access-control provider="simple">
<host-scoped-roles>
<role name="custom-role-name" base-role="Administrator">
</role>
</host-scoped-roles>
<role-mapping>
<role name="SuperUser">
<include>
<user name="$local"/>
</include>
</role>
</role-mapping>
</access-control>
</management>
{code}
* Run the migration {{$JBOSS_72_HOME/bin/jboss-server-migration.sh -s $JBOSS_71_HOME -t $JBOSS_72_HOME}}
* Add an arbitrary management user to JBoss EAP 7.2.3
* Start JBoss EAP 7.2.3 server in domain mode and access the HAL {{http://localhost:9990}}
> Correct minOccurts value for host element in XSD
> ------------------------------------------------
>
> Key: WFCORE-4882
> URL: https://issues.redhat.com/browse/WFCORE-4882
> Project: WildFly Core
> Issue Type: Bug
> Components: Management, Server
> Affects Versions: 11.0.0.Final
> Reporter: Chao Wang
> Assignee: Chao Wang
> Priority: Major
> Attachments: Screenshot.png
>
>
> Broken 'domain.xml' after migration of <host-scoped-roles> leading to 'Boostrap error' in HAL.
> A broken domain configuration
> {code:xml}
> <host-scoped-roles>
> <role name="custom-role-name" base-role="Administrator">
> </role>
> </host-scoped-roles>
> {code}
> This broken configuration doesn't bother the old HAL, so user only see the issue from HAL after the migration.
> The correct one should be:
> {code:xml}
> <host-scoped-roles>
> <role name="dbaish" base-role="Administrator">
> <host name="master"/>
> </role>
> </host-scoped-roles>
> {code}
> https://github.com/wildfly/wildfly-core/blob/11.0.0.Final/server/src/main/resources/schema/wildfly-config_9_0.xsd#L4567 show minOccurs="1", which is incorrect, the minOccurs should be 0 here.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list