-
Bug
-
Resolution: Done
-
Major
-
7.0.0.DR5
-
None
Description of problem:
One profile can have more ancestors with same submodules. It leads to WFLYCTL0212: Duplicate resource [("subsystem" => "subsystem_name")] . Hierarchical composition of profiles was added to AS with EAP7-281 and WFCORE-382
How reproducible:
Always
Steps to Reproduce:
- get fresh EAP
- ./domain.sh
- ./jboss-cli.sh -c
- /profile=mail-01:add
- /profile=mail-02:add
- /profile=mail-01/subsystem=mail:add
- /profile=mail-02/subsystem=mail:add
- /profile=default-new:add
- /profile=default-new:list-add(name=includes, value=mail-01)
- /profile=default-new:list-add(name=includes, value=mail-02)
Actual results:
No errors.
Expected results:
{ "outcome" => "failed", "failure-description" => {"domain-failure-description" => "WFLYCTL0401: Profile 'mail-01' defines subsystem 'mail' which is also defined in its ancestor profile 'mail-02'. Overriding subsystems is not supported"}, "rolled-back" => true }
Workaround:
Add any subsystem to default-new profile:
- /profile=mail-01:add
- /profile=mail-02:add
- /profile=mail-01/subsystem=mail:add
- /profile=mail-02/subsystem=mail:add
- /profile=default-new:add
- /profile=default-new/subsystem=jdr:add
- /profile=default-new:list-add(name=includes, value=mail-01)
- /profile=default-new:list-add(name=includes, value=mail-02)
- is cloned by
-
WFCORE-815 One profile can have more ancestors with same submodules
- Resolved
-
WFCORE-796 One profile can have more ancestors with same submodules
- Closed