]
Chao Wang updated WFCORE-4882:
------------------------------
Summary: Correct minOccurts value for host element in XSD (was: Broken
'domain.xml' after migration of <host-scoped-roles> leading to 'Boostrap
error' in HAL)
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...
show minOccurs="1", which is incorrect, the minOccurs should be 0 here.