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

bundle:refresh doesn't work without argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 4.0.0.M2, 4.0.0.M3
    • karaf
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: