Jean-Baptiste Onofré created KARAF-3248:
-------------------------------------------

             Summary: bundle:refresh doesn't work without argument
                 Key: KARAF-3248
                 URL: https://issues.apache.org/jira/browse/KARAF-3248
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 3.0.1
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 4.0.0, 3.0.2


When using bundle:refresh without argument:

{code}
karaf@root()> bundle:refresh
{code}

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):

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

It should be:

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to