Before the fix I was registering the workflows with the server whenever a backend was registered with the server (in the automatic configuration mode). However when a new base DN was added to an existing backend, the corresponding workflow was not created nor registered with the server! So I have moved the workflow creation and registration to the DirectoryServer.registerBaseDN() method. That way, any change to the backends and/or backend baseDNs are taken into account and the workflows are updated accordingly:
- Workflows are created and registered with the server
1) at server startup for each and every enabled backend
2) when a backend is dynamically added or enabled
3) when a backend baseDN is added to an enabled backend
- Workflows are deregistered and removed when
1) server is shutting down
2) a backend is disabled
3) a backend baseDN is removed
--This line, and these below, wll be ignored--
M tests/unit-tests-testng/src/server/org/opends/server/core/NetworkGroupTest.java
M src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java
M src/server/org/opends/server/core/DirectoryServer.java
M src/server/org/opends/server/extensions/ConfigFileHandler.java
M src/server/org/opends/server/backends/RootDSEBackend.java