Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4857

SCR Gogo commands outputs wrong infos when a component is unsatisfied because of missing configuration

    XMLWordPrintableJSON

Details

    Description

      The Gogo scr:info command doesn't show when a DS component has Configuration.REQUIRE and is unsatisfied because the configuration is missing. Instead, it marks a reference as unsatisfied even though it is available and consumed elsewhere in the same bundle.

      $ scr:info 0
      ID: 0
      Name: my-component
      Bundle: my-bundle (56)
      State: unsatisfied 
      Default State: enabled
      Activation: delayed
      Configuration Policy: require
      Activate Method: activate (declared in the descriptor)
      Deactivate Method: deactivate
      Modified Method: -
      Configuration Pid: my-component
      Services: io.lambdacube.service.MyService
      Service Type: service
      Reference: JsonMapper
          Satisfied: unsatisfied
          Service Name: io.lambdacube.core.json.JsonMapper
          Multiple: single
          Optional: mandatory
          Policy: static
          Policy option: reluctant
          (unbound)
      Properties:
          component.id = 0
          component.name = my-component
      

      In that example, JsonMapper is actually available. Instead, the scr:info command should state it's unsatisfied because the configuration entry is missing.

      Attachments

        Activity

          People

            djencks David Jencks
            magnet Simon Chemouil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: