Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2995

Problem with feature dependencies and deactivations

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.3.0
    • 4.2.0
    • None
    • 4.3 M6

      For instance, if in plugin core we add the following dependency :

      feature name="runtime.core.datasource.sql" depends="core-impl/runtime.current-user"

      Which is correct (SQLDataSourceManager depends on CurrentUserProvider), then a web application does not boot anymore :

      The feature 'core/runtime.core.datasource.sql' depends on 'core-impl/runtime.current-user' which is not present. It will be ignored.
      The feature 'repository/provider.jackrabbit' depends on 'core/runtime.core.datasource.sql' which is not present. It will be ignored.
      The component for role 'javax.jcr.Repository' should point to id 'org.ametys.plugins.repository.provider.JackrabbitRepository' but no component match

      We should keep an override-mapping up to date and test the override, not the initial feature.

      But since v4, we do not talk about override but deactivate, which have not the same meaning.

          [RUNTIME-2995] Problem with feature dependencies and deactivations

          Simon Prieul (Inactive) added a comment - - edited

          In general, if -> means "depends on", then if we have the chain :

          A -> B -> C -> D

          and E deactivates D

          then features A, B, C, D are deactivated

          Simon Prieul (Inactive) added a comment - - edited In general, if -> means "depends on", then if we have the chain : A -> B -> C -> D and E deactivates D then features A, B, C, D are deactivated

          Another example :

          2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) Removing feature workflow/workflow-provider deactivated by feature web/workflow-provider.
          2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/web.copy.site' depends on 'workflow/workflow-provider' which is not present. It will be ignored.
          2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/sites' depends on 'web/web.copy.site' which is not present. It will be ignored.
          2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/init' depends on 'web/sites' which is not present. It will be ignored.
          

          Simon Prieul (Inactive) added a comment - Another example : 2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) Removing feature workflow/workflow-provider deactivated by feature web/workflow-provider. 2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/web.copy.site' depends on 'workflow/workflow-provider' which is not present. It will be ignored. 2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/sites' depends on 'web/web.copy.site' which is not present. It will be ignored. 2019-09-20 17:57:29,480 DEBUG [org.ametys.runtime.plugin.ExcludePolicyFeatureActivator] (main;) The feature 'web/init' depends on 'web/sites' which is not present. It will be ignored.

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: