Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3248

bundle:refresh doesn't work without argument

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2, 4.0.0.M2, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      When using bundle:refresh without argument:

      karaf@root()> bundle:refresh
      

      it should refresh all bundles. But actually, it doesn't do anything as the test is not correct (in the case of bundles is null):

      wiring.refreshBundles(bundles == null || bundles.isEmpty() ? null : bundles);
      

      It should be:

      if (bundles == null || bundles.isEmpty()) {
        bundles = null;
      }
      wiring.refreshBundles(bundles);
      

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: