-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
2.0.0.Alpha6
-
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 WildFly
- ./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)
- clones
-
JBEAP-401 One profile can have more ancestors with same submodules
- Closed